detachAllPackages: Detach All Packages from Workspace

View source: R/detachAllPackages.R

detachAllPackagesR Documentation

Detach All Packages from Workspace

Description

Detaches all packages from the current workspace.

Usage

detachAllPackages(keep = NULL, keep.base = TRUE, unload = FALSE, force = FALSE)

Arguments

keep

character vector of package names that should not be removed.

keep.base

logical. Should base packages be retained? Default is TRUE.

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 TRUE, then detach will attempt to unload the namespace via unloadNamespace: if the namespace is imported by another namespace or unload is FALSE, no unloading will occur.

force

logical. Should a package be detached even though other attached packages depend on it?

Author(s)

Jason Grafmiller

See Also

detach

Examples

library(lme4); library(dplyr); library(ggplot2)

detachAllPackages(keep = "dplyr")

jasongraf1/JGmisc documentation built on March 21, 2022, 7:42 a.m.