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

Description Usage Arguments Details See Also Examples

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.

Usage

1
2
3
rm.pkg( pkg, ..., list = NULL, save.=NA)
# 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

save.

For internal use— leave this alone!

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

1
2
3
4
5
6
## Not run: 
rm.pkg( "mypackage", foo, bar)
rm.pkg( "mypackage", list=cq( foo, bar))
rm.pkg( ..mypackage, list=cq( foo, bar))

## End(Not run)

mvbutils documentation built on May 2, 2019, 8:32 a.m.

Related to rm.pkg in mvbutils...