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", dryRun = 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 ( |
dryRun |
If TRUE, lists all packages that will be cleaned up. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.