erase_data: Remove all objects, which are listed in 'Data' section in...

Description Usage Arguments Details Value Examples

View source: R/erase-by-type.R

Description

Remove all objects, which are listed in 'Data' section in RStudio

Usage

1
erase_data(pattern = NULL, envir = parent.frame(), verbose = FALSE)

Arguments

pattern

regex pattern to select a set of objects; default: NULL

envir

environment; default: caller environment

verbose

print removed objects' names

Details

Function can be used with envir = globalenv() argument.

Value

NULL (function returns nothing)

Examples

1
2
3
4
cars.2 <- cars
test_fun <- function(x) x + 2
value <- 7
erase_data(verbose = TRUE)

eponge documentation built on March 24, 2020, 5:08 p.m.