[R-pkg-devel] Checkpoint package failing CRAN checks
I wonder why does vignettes/checkpoint.Rmd run the following:
example_project <- tempdir()
Now example_project contains the path of per-session temporary directory...
dir.create(example_project, recursive = TRUE, showWarnings = FALSE)
...so there should be no need to create it...
unlink(example_project, recursive = TRUE)
And deleting it is might be the cause of the problems: rmarkdown probably uses the same temporary directory to store its own files. Perhaps example_project should be something like tempfile(project) instead of just tempdir()? Then dir.create() and unlink() calls start making sense.
Best regards, Ivan