On Sun, 14 Jun 2020 at 14:32, Joshua N Pritikin <jpriti...@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 ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel