clearNN: Clean the .GlobalEnv and Detach the Loaded Packages

Description Usage Arguments

Description

clearNN cleans the first environment ls(.GlobalEnv) from objects not listed in donotremove and detach the loaded packages and their dependencies not listed in donotdetach.

detachNN() removes ZZ and all objects in ls(.GlobalEnv) not listed in donotremove. It does not detach any packages.

Usage

1
2
3
clearNN(donotremove, donotdetach = NULL)

detachNN(donotremove, donotdetach = "")

Arguments

donotremove

a vector of characters representing objects in ls().

donotdetach

a vector of packages and environments that are not detached. donotdetach = NULL protects the packages and environments ".GlobalEnv", "package:kableExtra", "package:dplyr", "package:stringr", "package:NNbenchmark", "package:rmarkdown", "package:knitr", "package:captioner", "package:pkgload", "package:R6", "tools:rstudio", "package:RWsearch", "package:pacman", "package:stats", "package:graphics", "package:grDevices", "package:utils", "package:datasets", "package:methods", "Autoloads", "package:base".


pkR-pkR/NNbenchmark2019 documentation built on June 22, 2020, 12:10 a.m.