[R-pkg-devel] Tests run without --as-cran and not with

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Thu Sep 30 18:59:25 CEST 2021


On Fri, 24 Sep 2021 21:48:12 +0200
Jan van der Laan <rhelp using eoos.dds.nl> wrote:

> my tests run fine when run with R CMD check, but not with R CMD check
> --as-cran

<...>

> pandoc then calls R again with a script which is part of the package

Part of R CMD check --as-cran is placing fake R and Rscript executables
on the PATH (but currently not on Windows):

https://github.com/r-devel/r-svn/blob/98f33a2a7b22f400d51220162cf400a0cfdc9aaf/src/library/tools/R/check.R#L279

https://github.com/r-devel/r-svn/blob/98f33a2a7b22f400d51220162cf400a0cfdc9aaf/src/library/tools/R/check.R#L6297-L6323

Does the pandoc script use the R_HOME variable to call the correct R
executable?

-- 
Best regards,
Ivan



More information about the R-package-devel mailing list