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

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

2018-03-19 Thread 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 linked in some way I'm not understanding. > > Similar

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

2018-03-19 Thread Tim Keitt
http://www.keittlab.org/ On Mon, Mar 19, 2018 at 3:29 AM, Thierry Onkelinx wrote: > You can make things even a bit easier by setting "eval=myeval" and set > "myeval <- FALSE" at the top of the vignette. In case you want to update > the figures, you only have to set "myeval <- TRUE" and run the v

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

2018-03-19 Thread Tim Keitt
http://www.keittlab.org/ On Mon, Mar 19, 2018 at 2:18 AM, Iñaki Úcar wrote: > 2018-03-19 3:57 GMT+01:00 Tim Keitt : > > http://www.keittlab.org/ > > > > On Sun, Mar 18, 2018 at 8:14 PM, Dirk Eddelbuettel > wrote: > > > >> > >> Tim, > >> > >> On 18 March 2018 at 18:58, Tim Keitt wrote: > >> | I

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

2018-03-19 Thread Dirk Eddelbuettel
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 linked in some way I'm not understanding. Similar idea applies: condition, just as Inaki and Thierry suggested. An example for a conditional vig

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

2018-03-19 Thread Thierry Onkelinx
You can make things even a bit easier by setting "eval=myeval" and set "myeval <- FALSE" at the top of the vignette. In case you want to update the figures, you only have to set "myeval <- TRUE" and run the vignette. ir. Thierry Onkelinx Statisticus / Statistician Vlaamse Overheid / Government o

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

2018-03-19 Thread Iñaki Úcar
2018-03-19 3:57 GMT+01:00 Tim Keitt : > http://www.keittlab.org/ > > On Sun, Mar 18, 2018 at 8:14 PM, Dirk Eddelbuettel wrote: > >> >> Tim, >> >> On 18 March 2018 at 18:58, Tim Keitt wrote: >> | I have an Rmd vignette that runs some benchmarks. It takes long enough >> (20+ >> | minutes) that eg Tr

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

2018-03-18 Thread Tim Keitt
http://www.keittlab.org/ On Sun, Mar 18, 2018 at 8:14 PM, Dirk Eddelbuettel wrote: > > Tim, > > On 18 March 2018 at 18:58, Tim Keitt wrote: > | I have an Rmd vignette that runs some benchmarks. It takes long enough > (20+ > | minutes) that eg TravisCI will choke. I've not tried submitting to CRA

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

2018-03-18 Thread Dirk Eddelbuettel
Tim, On 18 March 2018 at 18:58, Tim Keitt wrote: | I have an Rmd vignette that runs some benchmarks. It takes long enough (20+ | minutes) that eg TravisCI will choke. I've not tried submitting to CRAN. | What is the best practice for handling this situation? Do I generate | HTML/PDF output locall

[R-pkg-devel] Avoid reprocessing Rmd vignette

2018-03-18 Thread Tim Keitt
I have an Rmd vignette that runs some benchmarks. It takes long enough (20+ minutes) that eg TravisCI will choke. I've not tried submitting to CRAN. What is the best practice for handling this situation? Do I generate HTML/PDF output locally and try to make them static? The vignette builder is knit