Skip to content
Prev 3448 / 21312 Next

[Bioc-devel] not including vignette in R CMD check

There has been some off-list discussion about the philosophy of
inst/doc and vignettes.  I don't really know what the real intention
is, but after experimenting and looking at the content of the source
dir, the source tarball and the install dir (and also reading the
documentation), this is my current understanding:

/inst/doc is for the documents, but not necessarily the document
sources.  Essentially, think of the directory as what needs to get
installed (but not build).  A bit like the difference between src
(where the source is) and libs (where the libraries gets installed).

If I in my source tree have
  vignettes/test.Rnw
the following will be present in the source tarball
  vignettes/test.Rnw
  inst/doc/test.pdf
  inst/doc/test.Rnw
Note that the pdf gets moved to inst/doc.  The reason why the test.Rnw
gets copied to inst/doc is - I think - because it is supposed to be
installed.  I don't really understand why the /vignettes directory is
still present to be honest.
Now, for installation we only get
  package_maindir/doc/test.pdf
  package_maindir/doc/test.Rnw
  package_maindir/doc/test.R
"only" in the sense that the vignettes dir is gone.

The reason the Rnw files gets copied over from vignettes to inst/doc
is that the Rnw actually needs to get installed.  Also, note the
test.R file gets created at install time.

Kasper

On Fri, Jun 22, 2012 at 12:21 AM, Kasper Daniel Hansen
<kasperdanielhansen at gmail.com> wrote: