[R-pkg-devel] R CMD check works but with devtools::check() examples fail

Dirk Eddelbuettel edd @end|ng |rom deb|@n@org
Thu May 16 04:31:30 CEST 2019


Barbara,

On 15 May 2019 at 17:09, Barbara Lerner wrote:
| I have just upgraded to R 3.6.0 and when building and checking my 
| package, R CMD check passes all the checks, including running the 
| examples, but devtools::check reports a failure when running the 
| examples.  I have also run the example successfully manually in RStudio. 
| I would appreciate help in understanding what devtools::check is doing 
| that R CMD check is not doing, or help in understanding the failure 
| report that devtools::check provides.

I tend to not use devtools for this very potential confusion -- you are at
loss now as to what it does when you presumably simply want a convenient
wrapper for the test functions.

But it turns out that the most likely difference (using '--as-cran' or not)
is likely involved.  Try running

   R CMD check --as-cran rdtLite_1.0.3.tar.gz

and it should fail too.  At least it does for me (but I am cheap so I didn't
install the suggested packages from your interested-looking provenance
project).

Hope this helps,  Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org



More information about the R-package-devel mailing list