[Rd] CRAN: How to list a non-Sweave doc under "Vignettes:" on package page?

Berwin A Turlach Berwin.Turlach at gmail.com
Tue Nov 8 04:36:45 CET 2011

G'day Henrik,

On Sun, 6 Nov 2011 16:41:22 -0800
Henrik Bengtsson <hb at biostat.ucsf.edu> wrote:

> is it possible to have non-Sweave vignettes(*) in inst/doc/ be listed
> under 'Downloads' on CRAN package pages?  

As far as I know, only by a little trick.  Create an Sweave based
vignette that uses the pdfpages package to include the .pdf file that
you want to have listed.  This dummy vignette should then be listed on

See the lasso2 package for an example.

The vignette in inst/doc/ in that package is actually a bit more
complicated than necessary.  As I think there is no point of having two
nearly identical copies of PDF files in a package, I use .buildignores
to have the original PDF file not included in the source package.  This
started to create a problem when R decided to rebuild vignettes during
the checking process and pdfpages decided to hang if the PDF file to be
included was missing.  




More information about the R-devel mailing list