erase_non_functions {eponge} | R Documentation |
Remove all the objects, that are not functions
erase_non_functions(pattern = NULL, envir = parent.frame(),
verbose = FALSE)
pattern |
regex pattern to select a set of objects; default: NULL |
envir |
environment; default: caller environment |
verbose |
print removed objects' names |
Function can be used with envir = globalenv() argument.
NULL (function returns nothing)
cars.2 <- cars
test_fun <- function(x) x + 2
value <- 7
erase_non_functions(verbose = TRUE)