R/clean.R

Defines functions clean

Documented in clean

#' @title Clean workspace
#' @description Alias/shorcut for "rm(list = ls())" followed by "gc(reset = TRUE)". It removes all objects and frees memory used when storing them.
#' @return Workspace freely from objects and unused memory.
#' @author CainĂ£ Max Couto-Silva
#' @export

clean <- function() {
  rm(list = ls(pos = 1), pos = 1)
  invisible(gc(reset = TRUE))
}
cmcouto-silva/gt documentation built on June 6, 2021, 7:14 p.m.