secRetstash is a package that holds functions I use to make my R life
easier. It is mainly intended for personal use and R experimentation,
you are welcome to poke around and install if you find anything useful!
Each function’s documentation can be reviewed using ?functionName and
additional examples are below.
You can install the package from GitHub with:
# install.packages("devtools")
devtools::install_github("burrowsdt/secRetstash")Each function is presented here, sorted alphabetically, with a brief example of its purpose.
removeExcept empties your global environment of all objects except
those specified by the user. Pass the object name as a string.
library(secRetstash)
objectA <- c("a", "b", "c")
objectB <- c("d", "e", "f")
removeExcept("objectA")Pass more than one object name as a string to retain multiple objects.
objectA <- c("a", "b", "c")
objectB <- c("d", "e", "f")
objectC <- c("g", "h", "i")
objectD <- c("j", "k", "l")
removeExcept(c("objectA", "objectB"))