Learn R Programming

mvbutils (version 2.2.0)

rm.pkg: Remove object(s) from maintained package

Description

Remove object(s) from maintained package. If the package is loaded, then objects are also removed from the search path version if any, the namespace if any, any importing namespaces, and any S3 method table. remove.from.package is a synonym. You will be prompted about whether to auto-save the maintained package. glurb

Usage

rm.pkg( pkg, ..., list = NULL)
# remove.from.package( pkg, ..., list=NULL)
remove.from.package( ...) # really has same args as 'rm.pkg'

Arguments

pkg
(string, or environment) package name or environment, e.g. ..mypack
...
unquoted object names to remove
list
character vector alternative to ..., which is ignored if list is set

Details

For now, methods are only removed from the base S3 methods table; if new S3 generics have been defined in loaded packages, and you are trying to remove a method for such a generic, then it won't be removed. I could implement this feature if anyone really wants it.

See Also

maintain.packages

Examples

Run this code
rm.pkg( "mypackage", foo, bar)
rm.pkg( "mypackage", list=cq( foo, bar))
rm.pkg( ..mypackage, list=cq( foo, bar))

Run the code above in your browser using DataLab