R/clear.R

# Just a tiny function to tidy up the workspace since I seem to end up doing this a lot

clear <- function(env = globalenv()){

  # Clear the memory of the environment selected, defaults to global

  rm(list = ls(envir = env), envir = env)

  # Clear the console. This doesn't actually remove the old text, just makes it scroll
  # down a bunch
  cat("\014")

}
svenhalvorson/SvenSFPS documentation built on May 21, 2019, 11:42 a.m.