From murdoch.duncan at gmail.com  Fri May 13 10:13:36 2016
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Fri, 13 May 2016 04:13:36 -0400
Subject: [Rd] objects intermittently shared between vignettes
In-Reply-To: <3c84b648-633e-7f3d-0d49-c3b886d982a4@prodsyse.com>
References: <3c84b648-633e-7f3d-0d49-c3b886d982a4@prodsyse.com>
Message-ID: <57358CB0.2040608@gmail.com>

On 12/05/2016 9:21 PM, Spencer Graves wrote:
> Hello:
>
>
>         Is it widely known that objects not explicitly deleted from one
> vignette in a package can be available to a second in "R CMD build" and
> "R CMD check" but not when the second vignette is built manually, at
> least under RStudio on Mac OS X 10.11.4 using R 3.3.0?
>
>
>          For an example, see
>
>
> install.packages("pkgW2vignettes", repos="http://R-Forge.R-project.org")
>
>
>         This package contains two toy vignettes.
>
>
>         This is not a big deal, but it spooked me, when I saw 227 objects
> listed by "objects()" in a vignette built by "R CMD build" + "R CMD
> check", when the same "objects()" command only listed 4 objects when I
> built the same vignette by itself from within RStudio.
>

Yes, this is a known flaw in the current build system.  It would be 
better if vignettes were built in a separate process that was started 
with an empty workspace.

There's an intention to clean up several vignette building issues, but 
so far no action.

Duncan Murdoch



[Rd] objects intermittently shared between vignettes
Duncan Murdoch