R/Rrmsrc.R

Defines functions Rrmsrc

Rrmsrc <- function(x, ...) { ## BE CAREFUL WITH THIS!!! ##
    objs <- ls(pos = ".GlobalEnv")
    rm(list = objs, pos = ".GlobalEnv") ## REMOVE EVERYTHING FROM THE CURRENT SESSION GLOBAL ENVIRONMENT (see `?ls` & `?rm`)
    source(x)
}
EccRiley/Riley documentation built on April 21, 2018, 11:15 a.m.