Skip to content
New issue

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

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

Already on GitHub? # to your account

renv 1.0.11 creates object in global environment #2017

Closed
kthayashi opened this issue Oct 12, 2024 · 3 comments
Closed

renv 1.0.11 creates object in global environment #2017

kthayashi opened this issue Oct 12, 2024 · 3 comments

Comments

@kthayashi
Copy link

I just upgraded from renv 1.0.7 to 1.0.11 and am finding that source("renv/activate.R") in the .Rprofile creates an object named object of type call in the global environment. In a fresh project, the value of object is source("renv/activate.R"), but if I have some other R scripts in the project the value is the last call in one of those scripts. I can confirm that clearing the global environment with rm(list = ls()) and manually running source("renv/activate.R") creates this object again. Could this be a bug in one of the recent updates of renv?

@kevinushey
Copy link
Collaborator

Thanks; this is most likely an issue with some of the native extensions introduced in the most recent release of renv. Can you try setting the environment variable

RENV_EXT_ENABLED = FALSE

in your project .Renviron and let me know if the issue persists?

@kthayashi
Copy link
Author

Thank you, and apologies for not getting back to you about this earlier. In case this might still be helpful - setting RENV_EXT_ENABLED = FALSE does indeed seem to resolve the issue for me.

@kevinushey
Copy link
Collaborator

Thanks! This should now be fixed in the development version of renv. I'll try to get this fix published to CRAN soon, but will probably take some time since CRAN discouraged frequent package submissions.

For what it's worth, the issue here should have no other ill effects.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants