R/zzz.R

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

.onAttach <- function(...) {
  temp_dir <- normalizePath(gsub("//", "/", path.expand(tempdir())))
  assign("temp_dir", temp_dir, envir=.pkgenv)
}

Try the splashr package in your browser

Any scripts or data that you put into this service are public.

splashr documentation built on May 2, 2019, 2:22 p.m.