R/clear.R

Defines functions clear

Documented in clear

#' Remove all objects from an environment
#' 
#' @param name name of the environment to clear; defaults to global environment
#' @export
clear <- function(name = .GlobalEnv) {
  rm(list = ls(name), envir = as.environment(name))
}
rogiersbart/rtoolz documentation built on Aug. 20, 2020, 2:48 p.m.