R/zzz.R

Defines functions .onUnload .onLoad

bs_temp_dir_internal <- NULL

.onLoad <- function(...) {
  bs_temp_dir_internal <<- tempfile()
  dir.create(bs_temp_dir_internal)
}

.onUnload <- function(...) {
  unlink(bs_temp_dir_internal, recursive = TRUE)
}
paleolimbot/bsrto documentation built on Dec. 12, 2021, 5:44 a.m.