tools/create-lorem-ipsum.R

for (filename in c("lorem-ipsum.txt", "more-lorem-ipsum.txt")) {
  filename <- here::here("inst", filename)
  if (!file.exists(filename)) {
    message("Creating ", basename(filename), ".")
    cat(stringi::stri_rand_lipsum(12), sep = "\n\n", file = filename)
  }
}

Try the filebin package in your browser

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

filebin documentation built on Sept. 2, 2023, 9:07 a.m.