[Rd] objects intermittently shared between vignettes

Duncan Murdoch murdoch.duncan at gmail.com
Fri May 13 10:13:36 CEST 2016


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



More information about the R-devel mailing list