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()

Try the R.cache package in your browser

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

R.cache documentation built on July 21, 2022, 5:11 p.m.