R/addREADME.R

Defines functions .addREADME

.addREADME <- function(to=getCacheRootPath(), ...) {
  # Add a README.txt to cache root (expaining what the directory is)
  filename <- "README.txt"
  pathnameD <- file.path(to, filename)
  if (!isFile(pathnameD)) {
    pathnameS <- system.file("_Rcache", filename, package="R.cache")
    file.copy(pathnameS, pathnameD)
  }
} # .addREADME()
HenrikBengtsson/R.cache documentation built on Sept. 30, 2023, 5:01 a.m.