Skip to content
Back to formatted view

Raw Message

Message-ID: <20200110151732.122019b4@trisector>
Date: 2020-01-10T12:17:32Z
From: Ivan Krylov
Subject: [R-pkg-devel] Checkpoint package failing CRAN checks
In-Reply-To: <KU1P153MB0102761F9117AE400327DD90A6390@KU1P153MB0102.APCP153.PROD.OUTLOOK.COM>

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