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 Feb. 23, 2020, 2:13 p.m.