Re: [R] do not eval vignettes during R CMD build

From: Duncan Murdoch <>
Date: Mon, 28 May 2007 14:44:43 -0400

On 5/28/2007 2:11 PM, johan Faux wrote:
> Hi,
> I was not able to find a way such that R CMD build run Sweave with eval=FALSE. I have a package where I want the R code in the vignettes to run only during R CMD check but not on R CMD build. Is there any way to achieve this ?

You can use the --no-vignettes option to build without building the vignettes, but I don't know of a way to build the vignette with different Sweave options, other than editing the file. Presumably you could write a Makefile to do this based on an environment variable, but I don't see why you'd want that.

Duncan Murdoch mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Mon 28 May 2007 - 18:50:27 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 28 May 2007 - 20:33:24 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.