R/zzz.r

Defines functions onAttach

.pkgenv <- new.env(parent=emptyenv())

.onAttach <- function(...) {
  temp_dir <- normalizePath(gsub("//", "/", path.expand(tempdir())))
  assign("temp_dir", temp_dir, envir=.pkgenv)
}
hrbrmstr/splashr documentation built on Aug. 16, 2018, 9:23 p.m.