From jeroenooms at gmail.com  Fri Nov 10 16:19:37 2017
From: jeroenooms at gmail.com (Jeroen Ooms)
Date: Fri, 10 Nov 2017 16:19:37 +0100
Subject: [Rd] check does not check that package examples remove tempdir()
In-Reply-To: <CAF8bMcZfc7uibFXC7Gx=qjXr4J808rKupZjf6AUhTBeV_Vu1ig@mail.gmail.com>
References: <CAF8bMcZfc7uibFXC7Gx=qjXr4J808rKupZjf6AUhTBeV_Vu1ig@mail.gmail.com>
Message-ID: <CABFfbXsFCKnmaDgH1TiOm-8QnYei0CFS6xmTbezX7MX5R0v8Kg@mail.gmail.com>

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.



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