[R-pkg-devel] [CRAN-pretest-archived] CRAN submission gwsem 2.0.3
On Sun, 14 Jun 2020 at 14:32, Joshua N Pritikin <jpritikin at pobox.com> wrote:
I'm trying to include vignettes that take much too long for CRAN check.
At the beginning of the Rmarkdown vignette, I use
is_CRAN <- !identical(Sys.getenv("NOT_CRAN"), "true")
if (is_CRAN) q()
And then I use
export NOT_CRAN=true
when I build locally. But CRAN check still complains,
Because you're just exiting and nothing is generated. Instead, you should mark all chunks as eval=FALSE. You could use something as follows in the initial chunk: if (is_CRAN) knitr::opts_chunk$set(eval = FALSE)
I?aki ?car