View source: R/detachAllPackages.R
detachAllPackages | R Documentation |
Detaches all packages from the current workspace.
detachAllPackages(keep = NULL, keep.base = TRUE, unload = FALSE, force = FALSE)
keep |
character vector of package names that should not be removed. |
keep.base |
logical. Should base packages be retained? Default is |
unload |
logical. A logical value indicating whether or not to attempt to unload the namespace when a package is being detached. If the package has a namespace and unload is |
force |
logical. Should a package be detached even though other attached packages depend on it? |
Jason Grafmiller
detach
library(lme4); library(dplyr); library(ggplot2)
detachAllPackages(keep = "dplyr")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.