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

2019-05-17 Thread Dirk Eddelbuettel
On 17 May 2019 at 08:33, Rainer Krug wrote: | Interesting discussion - because I had similar issues. | | @Dirk: You are developing packages fir ages - do you probably have a template make file you could share (as I assume, you use make) which is doing all these checks? Nothing special -- just

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

2019-05-16 Thread Dirk Eddelbuettel
Hi Barbara, On 16 May 2019 at 16:48, Barbara Lerner wrote: | This is very helpful, thank you!  The R Internals document gave me the | clues that I need. Great! | I am pretty certain that more things are being checked than before as | problems are being reported with code that has not change

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

2019-05-16 Thread Barbara Lerner
Hi Dirk, This is very helpful, thank you!  The R Internals document gave me the clues that I need. I am pretty certain that more things are being checked than before as problems are being reported with code that has not changed.  In particular, it is checking if logical expressions are returni

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

2019-05-16 Thread Duncan Murdoch
On 16/05/2019 5:56 a.m., Jack O. Wasey wrote: Barbara, On 5/15/19 5:09 PM, 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 e

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

2019-05-16 Thread Jari Oksanen
I think this is because the check systems set different environmental variables. I had the same problem in February, and found out that R 3.6.0 (then still to come) adds new environmental variable _R_CHECK_LENGTH_1_LOGIC2_. This *is* documented, but the documentation is well hidden in R-internal

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

2019-05-16 Thread Jack O. Wasey
Why do you think so? Don't the lines below the "-- Building" header mean that devtools/rcmdcheck is building the package? I saw (the last part of) this: > ~/git/rdtLite.check/rdtLite.Rcheck/00_pkg_src/rdtLite -> R CMD check . Sorry if I added some confusion: on closer inspection, it does lo

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

2019-05-16 Thread Gábor Csárdi
On Thu, May 16, 2019 at 10:56 AM Jack O. Wasey wrote: > Agree with Dirk, and also you are running R CMD check on the current > directory, Why do you think so? Don't the lines below the "-- Building" header mean that devtools/rcmdcheck is building the package? G. [...] > > ── Building ──

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

2019-05-16 Thread Jack O. Wasey
Barbara, On 5/15/19 5:09 PM, 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 successfu

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

2019-05-15 Thread Dirk Eddelbuettel
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 e

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

2019-05-15 Thread Barbara Lerner
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 i