revdepcheck icon indicating copy to clipboard operation
revdepcheck copied to clipboard

Set NOT_CRAN to true for the checks ?

Open gaborcsardi opened this issue 8 years ago • 7 comments

Maybe optionally?

gaborcsardi avatar May 10 '17 23:05 gaborcsardi

I don't think we want to do this, just so we're as similar to CRAN as possible

hadley avatar Jun 27 '17 19:06 hadley

So callr has https://github.com/r-lib/callr/blob/2dffbbe502c7aba84fc0785add4a1e588f88b03c/R/rcmd.R#L106

which basically always sets NOT_CRAN=true unless it is already set, which I believe is causing revdepcheck to always have NOT_CRAN=true set when running revdepchecks. I am pretty sure I have purged NOT_CRAN settings in all of my environment configurations and it is still ends up being set when I run revdepcheck::revdep_check()

jimhester avatar Aug 10 '17 13:08 jimhester

callr probably should not touch NOT_CRAN at all, no? @hadley ?

gaborcsardi avatar Aug 10 '17 13:08 gaborcsardi

I think not touching it is probably best.

In the meantime I can successfully work around it with

withr::with_envvar(c(NOT_CRAN="false"), revdepcheck::revdep_check())

jimhester avatar Aug 10 '17 13:08 jimhester

Hmmmm, I'm not sure. We are asserting that the code is not running on CRAN, which is true.

Maybe we're conflating too many definitions of "on cran"?

It probably should at least be an option.

hadley avatar Aug 10 '17 14:08 hadley

Hmmmm, I'm not sure. We are asserting that the code is not running on CRAN, which is true.

In callr not always, actually, because we do use callr::r for many things now, and some of these do run on CRAN.

gaborcsardi avatar Aug 10 '17 14:08 gaborcsardi

Ok, that's true. We should be setting NOT_CRAN at a higher level.

hadley avatar Aug 10 '17 14:08 hadley