Re: [R-pkg-devel] Avoid reprocessing Rmd vignette

2018-03-20 Thread Iñaki Úcar
2018-03-20 5:12 GMT+01:00 Jennifer Bryan : > Hi Tim, > > Here's a rather long thread from previous discussions of this: > > https://stat.ethz.ch/pipermail/r-devel/2014-May/069113.html > > These two lines from R CMD check suggest the two ways the vignette code > will be run: > > * checking running

Re: [R-pkg-devel] Avoid reprocessing Rmd vignette

2018-03-20 Thread Jennifer Bryan
Hi Tim, Here's a rather long thread from previous discussions of this: https://stat.ethz.ch/pipermail/r-devel/2014-May/069113.html These two lines from R CMD check suggest the two ways the vignette code will be run: * checking running R code from vignettes ... OK * checking re-building of vig

Re: [R-pkg-devel] Avoid reprocessing Rmd vignette

2018-03-20 Thread Spencer Graves
On 2018-03-20 06:17, Johannes Ranke wrote: ... The idea exposed by Dirk is the same: requireNamespace will find the package on CRAN and will set eval=TRUE. What you want though is to avoid running a chunk on CRAN, even if the package is available. So you need to set eval=FALSE *unconditionally

Re: [R-pkg-devel] Avoid reprocessing Rmd vignette

2018-03-20 Thread Johannes Ranke
... > The idea exposed by Dirk is the same: requireNamespace will find the > package on CRAN and will set eval=TRUE. What you want though is to > avoid running a chunk on CRAN, even if the package is available. So > you need to set eval=FALSE *unconditionally*. Or conditional on the package versi

Re: [R-pkg-devel] Avoid reprocessing Rmd vignette

2018-03-20 Thread Iñaki Úcar
2018-03-20 4:04 GMT+01:00 Tim Keitt : > http://www.keittlab.org/ > > On Mon, Mar 19, 2018 at 6:41 AM, Dirk Eddelbuettel wrote: > >> >> On 18 March 2018 at 21:57, Tim Keitt wrote: >> | That's a great idea, however my problem is with building a vignette, not >> | running tests, unless they are linke