Message-ID: <CALEXWq2FAkiRfOYS6yGpKP4bRe5C=_m1S-0Xi7yjKj1fHoGR0g@mail.gmail.com>
Date: 2020-06-14T12:54:19Z
From: IƱaki Ucar
Subject: [R-pkg-devel] [CRAN-pretest-archived] CRAN submission gwsem 2.0.3
In-Reply-To: <20200613172920.czyt5q4fn5gowbi6-7118@cocoa>
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