Description Usage Arguments Details Value Examples
View source: R/erase-by-type.R
Remove all objects, which are listed in 'Data' section in RStudio
| 1 | erase_data(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_data(verbose = TRUE)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.