R/cleanup.R

Defines functions cleanup

Documented in cleanup

#' Removes all objects except specified analysis objects
#'
#' @return
#' @export
#'
#'
cleanup <- function() {

  #
  rm(list = setdiff(ls(pos = .GlobalEnv, all.names = FALSE),
                    c(".cache",
                      ".datasets",
                      ".databases",
                      ".imports",
                      ".info",
                      "Analysis",
                      "data_")),
     pos = .GlobalEnv)

}
nicohuttmann/pOmics documentation built on Sept. 21, 2022, 9:28 a.m.