[R-pkg-devel] Checkpoint package failing CRAN checks
Ivan Krylov
kry|ov@r00t @end|ng |rom gm@||@com
Fri Jan 10 13:17:32 CET 2020
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
More information about the R-package-devel
mailing list