From Berwin.Turlach at gmail.com  Tue Nov  8 04:36:45 2011
From: Berwin.Turlach at gmail.com (Berwin A Turlach)
Date: Tue, 8 Nov 2011 11:36:45 +0800
Subject: [Rd] CRAN: How to list a non-Sweave doc under "Vignettes:" on
 package page?
In-Reply-To: <CAFDcVCRfVN6KnMDdN1Je49nCTPV3+xZUaWCBKbFpJmXRzZ2Qvw@mail.gmail.com>
References: <CAFDcVCRfVN6KnMDdN1Je49nCTPV3+xZUaWCBKbFpJmXRzZ2Qvw@mail.gmail.com>
Message-ID: <20111108113645.503308a2@bossiaea>

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
CRAN.

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.  

HTH.

Cheers,

	Berwin



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