[Rd] check does not check that package examples remove tempdir()

Jeroen Ooms jeroenooms at gmail.com
Fri Nov 10 16:19:37 CET 2017


On Thu, Nov 9, 2017 at 1:43 AM, William Dunlap via R-devel
<r-devel at r-project.org> wrote:
> I was looking at the CRAN package 'bfork-0.1.2', which exposes the Unix
> fork() and waitpid() calls at the R code level, and noticed that the help
> file example for bfork::fork removes R's temporary directory, the value of
> tempdir().   I think it happens because the forked process shares the value
> of tempdir() with the parent process and removes it when it exits.

This has come up a few times:

 - https://stat.ethz.ch/pipermail/r-devel/2017-February/073748.html
 - https://stat.ethz.ch/pipermail/r-devel/2017-April/074149.html

You may want to read up on the latter discussion.



More information about the R-devel mailing list