Skip to content

processing of /vignettes and /inst/doc

5 messages · Kasper Daniel Hansen, Duncan Murdoch

#
On 17/09/2013 9:56 AM, Kasper Daniel Hansen wrote:
The long run intention is that vignettes will be in the vignettes 
directory, and nowhere else.  Files in inst/doc will be installed, but 
they are not vignettes, they are just documentation files.  This has 
been documented for a long time, but it hasn't been enforced.

The new change is that vignettes will be produced at build time, by the 
package maintainer, not by the user, at INSTALL time.  Version 3.0.2 is 
intended to handle tar.gz files built under earlier versions of R 
according to the old rules, and also tarballs built under the new system.

So how your example below is handled depends on which version built the 
tarball.  I'll assume everything is being done with 3.0.2 beta.
Since this package has a vignettes directory, it's assumed that that is 
where the vignettes are.  So the current version doesn't see 
inst/doc/big.Rnw as a vignette.
That looks like a bug, in that inst/doc/big.pdf should still have been 
included as a non-vignette documentation file.  I'll look into that.
That statement should be correct, hence current behaviour is a bug.

Duncan Murdoch
#
On 17/09/2013 9:56 AM, Kasper Daniel Hansen wrote:
This was a bug in the cleanup code after vignettes were built:  it was a 
little too zealous, and cleaned up things it hadn't produced.
After fixing the bug, for a test case like the one described above, R 
3.0.2 will not build the big vignette, but will consider it to be a 
vignette.  R-devel will not consider it to be a vignette.  Both should 
install it into inst/doc in the tarball.

Duncan Murdoch
#
On 17/09/2013 1:47 PM, Kasper Daniel Hansen wrote:
They would not be found by vignettes() or browseVignettes(), but would 
be listed on the HTML help page under "User guides, package vignettes 
and other documentation."

Duncan Murdoch