R/rmall.R

#' Removes all objects from specified environment
#'
#' Removes all objects from specified environment. Default is global environment \code{.GlobalEnv}.
#'
#' @param env Environment from which objects will be removed. Default is global environment \code{.GlobalEnv}.
#' @export
rmall <- function(env = .GlobalEnv){	
 rm(list = ls(envir=env), envir=env)
}
dan410/dansRfunctions documentation built on May 14, 2019, 3:33 p.m.