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/snpsel documentation built on June 8, 2021, 10:29 p.m.