sanitize: Cleans the workspace

Description Usage Arguments Details Value Author(s)

View source: R/sanitize.R

Description

Cleans the current workspace

Usage

1
2
3
4
5
6
7
sanitize(keep_global = keep$global, keep_search = keep$search,
  keep_packages = keep$packages, keep_namespaces = keep$namespaces,
  hidden = FALSE, verbose = FALSE)

cleanWorkspace(keep_global = keep$global, keep_search = keep$search,
  keep_packages = keep$packages, keep_namespaces = keep$namespaces,
  hidden = FALSE, verbose = FALSE)

Arguments

keep_global

Which global variables to keep

keep_search

Which environments to keep on the search path

keep_packages

Which loaded packages to keep

keep_namespaces

Which loaded namespaces to keep

hidden

Should also hidden variables starting with a dot be removed?

verbose

More comments on what is deleted, detached and unloaded

Details

Removes all elements in the global environment and detaches all attached packages that are not base packages. One can specify certain packages that should be kept.

Value

TRUE if everything succeeded, FALSE otherwise

Author(s)

Holger Hoefling


hhoeflin/sanitizr documentation built on May 28, 2019, 5:43 a.m.