Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set NOT_CRAN to true for the checks ? #23

Open
gaborcsardi opened this issue May 10, 2017 · 7 comments
Open

Set NOT_CRAN to true for the checks ? #23

gaborcsardi opened this issue May 10, 2017 · 7 comments
Labels
feature a feature request or enhancement

Comments

@gaborcsardi
Copy link
Member

Maybe optionally?

@hadley
Copy link
Member

hadley commented Jun 27, 2017

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

@jimhester
Copy link
Member

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()

@gaborcsardi
Copy link
Member Author

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

@jimhester
Copy link
Member

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())

@hadley
Copy link
Member

hadley commented Aug 10, 2017

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.

@gaborcsardi
Copy link
Member Author

gaborcsardi commented Aug 10, 2017

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.

@hadley
Copy link
Member

hadley commented Aug 10, 2017

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

@jennybc jennybc added feature a feature request or enhancement and removed enhancement labels May 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

4 participants