Skip to content
Prev 9737 / 12125 Next

[R-pkg-devel] Suppressing long-running vignette code in CRAN submission

Please pardon me if I suggest something unrelated below. Many experts
have made suggestions that I would also like to consider because I
also have a similar issue with some packages.

This is an approach I found, for Rmarkdown vignettes:

https://www.kloppenborg.ca/2021/06/long-running-vignettes/

This is similar to some of the suggestions. The vignette is rendered
locally. It uses the trick that, If we render the vignette by calling
knitr::knit() directly, the extension of the source file does not
matter. The output, although with the extension ".Rmd", actually
contains the results of the code, in chunks starting with "```r", not
"```{r}".

When this pre-buiult .Rmd file is built again, it will just convert
the file to an HTML file, with no need to rerun the code.

The method uses an extension for the source Rmd file (".orig" in the
post) to make sure the "real" source files are ignored when building
the vignettes.

Perhaps this is also a feasible solution for long running vignettes?

Regards,
Shu Fai
On Wed, Oct 18, 2023 at 6:51?AM John Fox <jfox at mcmaster.ca> wrote:

Thread (26 messages)

John Fox Suppressing long-running vignette code in CRAN submission Oct 16 Kevin Coombes Suppressing long-running vignette code in CRAN submission Oct 16 John Harrold Suppressing long-running vignette code in CRAN submission Oct 16 Dirk Eddelbuettel Suppressing long-running vignette code in CRAN submission Oct 17 c@rtogr@iiow m@iii@g oii gm@ii@com Re :Re: Suppressing long-running vignette code in CRAN submission Oct 17 Ivan Krylov Suppressing long-running vignette code in CRAN submission Oct 17 c@rtogr@iiow m@iii@g oii gm@ii@com Re :Re: Re :Re: Suppressing long-running vignette code in CRAN submission Oct 17 John Fox Suppressing long-running vignette code in CRAN submission Oct 17 Georgi Boshnakov Suppressing long-running vignette code in CRAN submission Oct 17 John Fox Suppressing long-running vignette code in CRAN submission Oct 17 Dirk Eddelbuettel Suppressing long-running vignette code in CRAN submission Oct 17 John Fox Suppressing long-running vignette code in CRAN submission Oct 17 Henrik Bengtsson Suppressing long-running vignette code in CRAN submission Oct 17 Simon Urbanek Suppressing long-running vignette code in CRAN submission Oct 17 John Fox Suppressing long-running vignette code in CRAN submission Oct 17 John Fox Suppressing long-running vignette code in CRAN submission Oct 17 Duncan Murdoch Suppressing long-running vignette code in CRAN submission Oct 17 John Fox Suppressing long-running vignette code in CRAN submission Oct 17 Dirk Eddelbuettel Suppressing long-running vignette code in CRAN submission Oct 17 Simon Urbanek Suppressing long-running vignette code in CRAN submission Oct 17 John Harrold Suppressing long-running vignette code in CRAN submission Oct 17 Duncan Murdoch Suppressing long-running vignette code in CRAN submission Oct 17 John Fox Suppressing long-running vignette code in CRAN submission Oct 17 Shu Fai Cheung Suppressing long-running vignette code in CRAN submission Oct 17 John Fox Suppressing long-running vignette code in CRAN submission Oct 18 Jim Lemon Suppressing long-running vignette code in CRAN submission Oct 18