R/clear.all.R

Defines functions clear.all

Documented in clear.all

#' Clear all data from the workspace
#'
#' Function to clear all data from the workspace, but leave functions intact.  It must be noted that it does not fully work, and one must run
#' the function without brackets and copy the function text to remove everything.
#'
#' @examples
#' clear.all
#'
#' @export 

clear.all <- function() {
  
  rm(list=setdiff(ls(all.names=TRUE), lsf.str(all.names=TRUE)))
}
mathesong/granviller documentation built on April 20, 2020, 7:28 p.m.