Description Usage Arguments Details Value Examples
View source: R/erase-by-type.R
Remove all the objects, that are not functions
1 2 | 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)
1 2 3 4 | cars.2 <- cars
test_fun <- function(x) x + 2
value <- 7
erase_non_functions(verbose = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.