pkg_unload | R Documentation |
To be able to unload properly a package, all the packages that depend even indirectly on it should be unloaded first.
pkg_unload(
pkg_or_name,
src_pkgs = get_srcpkgs(),
dry_run = FALSE,
loaded = loadedNamespaces(),
quiet = FALSE
)
pkg_or_name |
a package name or object ("package" or "srcpkg") |
src_pkgs |
a collection of source packages as a |
dry_run |
whether not to actually execute any action having side-effects |
loaded |
the loaded packages, useful for testing. |
quiet |
whether to be quiet/silent |
N.B: this function also works for non source packages.
a data frame of the unloaded package names, and whether they were attached, invisibly or NULL if the package is not loaded
plan <- pkg_unload('mypkg')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.