From hb at biostat.ucsf.edu  Fri Feb 27 22:53:09 2015
From: hb at biostat.ucsf.edu (Henrik Bengtsson)
Date: Fri, 27 Feb 2015 13:53:09 -0800
Subject: [Rd] static pdf vignette
In-Reply-To: <54F05D99.4060706@ivt.baug.ethz.ch>
References: <DABBA49CC8C7AA4B959D2D0FEE496D721C531D6A@EXINFRCHMB1P.ccmc.local>
	<54F05D99.4060706@ivt.baug.ethz.ch>
Message-ID: <CAFDcVCS0iZXB9fd5whZhoVRGMCZiePb0rL5L+ku=BB3OYb_qUA@mail.gmail.com>

On Fri, Feb 27, 2015 at 4:05 AM, Kirill M?ller
<kirill.mueller at ivt.baug.ethz.ch> wrote:
> Perhaps the R.rsp package by Henrik Bengtsson [1,2] is an option.
>
>
> Cheers
>
> Kirill
>
>
> [1] http://cran.r-project.org/web/packages/R.rsp/index.html
> [2] https://github.com/HenrikBengtsson/R.rsp

Yes, this use case is one of the rationale for providing the
R.rsp::asis vignette engine (and the R.rsp::tex one).  Just make sure
you try your best to provide the source in the *.tar.gz distribution,
which shouldn't be hard in this case since you're generating the PDF
from a (Sweave/knitr) vignette.  For instructions, see the R.rsp 'R
packages: Static PDF and HTML vignettes'.

Also, if it's not already clear, users who install your package do
*not* have to install vignette engine packages (here R.rsp), i.e.
you're not adding any overhead for them; it's only when you as a
package developer run 'R CMD build' that the vignette engine machinery
is needed.

/Henrik
(author of R.rsp)

>
>
> On 27.02.2015 02:44, Wang, Zhu wrote:
>>
>> Dear all,
>>
>> In my package I have a computational expensive Rnw file which can't pass R
>> CMD check. Therefore I set eval=FALSE in the Rnw file. But I would like to
>> have the pdf vignette generated by the Rnw file with eval=TRUE. It seems to
>> me a static pdf vignette is an option.  Any suggestions on this?
>>
>> Thanks,
>>
>> Zhu Wang
>>
>>
>> **Connecticut Children's Confidentiality Notice**
>>
>> This e-mail message, including any attachments, is for...{{dropped:6}}
>
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



[Rd] static pdf vignette
Henrik Bengtsson