View source: R/VC_library_writing.R
detachAll | R Documentation |
Tries to detach all loaded packages and namespaces. Not always stable (within Rstudio).
A restart of Rstudio might be required since it will often hold on to certain namespaces.
A proper reset of all libraries is not possible, this is the best we can do.
In general, it is possible to create a complete clean environment by clearing your work space,
running detachAll
and then restarting Rstudio. If problems with package loading still persists,
then follow the final alternative solution described in the details section of the documentation of lib.load
.
detachAll(reload_multiversion = FALSE, packageList = "all", dry_run = FALSE)
reload_multiversion |
If multiversion needs to be loaded again after
everything (or all mentioned in |
packageList |
A character vector with the packages to detach/unload.
Defaults to all packages ( |
dry_run |
If TRUE, lists all packages that will be cleaned up. |
When dry_run is FALSE, will returns the list of packages that it tried to detach. When not requested, will return them invisibly. In general, this function is called for it's side effect to unload all or some loaded packages.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.