-
Notifications
You must be signed in to change notification settings - Fork 154
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
Change the default behavior to RENV_PATHS_PREFIX_AUTO=TRUE
#1211
Comments
This would be worth including in a 1.0.0 release, since it'd be a potentially breaking change. |
Punted due to time constraints + danger in making such a breaking change here. |
Maybe you could synchronize a change to .onLoad <- function(libname, pkgname) {
if (getRversion() >= "4.4") {
env <- Sys.getenv("RENV_PATHS_PREFIX_AUTO", NA_character_)
if (is.na(env)) Sys.setenv(RENV_PATHS_PREFIX_AUTO = "TRUE")
}
...
} I guess you could roll that out already now. |
@HenrikBengtsson that is an excellent idea -- I'll do that! |
This has been implemented. Thanks again for the suggestion @HenrikBengtsson! |
By default,
renv
creates caches that are used (in an incompatible fashion) across differing linux OSesBy setting
RENV_PATHS_PREFIX_AUTO=TRUE
, this can be remedied for different linux operating systems. We should do this by default so that starting projects on different operating systems "just works" onrenv
(modulo package rebuilding).There may be ways to mitigate a one-time breakage with existing project options, one-time symlinks, etc.
The text was updated successfully, but these errors were encountered: