-
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
renv::load() duplicating paths in the PATH environment variable #1095
Comments
IIUC these are the two path entries getting duplicated:
Do you know where these path entries are originally being set? The output of the following might be helpful:
|
Yes correct.
Is that what you wanted me to run? |
Please also run renv::load() after running that code. |
I had to run So I ran:
And got the following:
|
Thanks! I believe this will be fixed via 97f6620. |
I gave it a go. This doesn't seem to have fixed it unfortunately.
The following paths are still duplicated: Best wishes, |
Thanks -- I'll have to take another look and see if I can figure out why... |
I'm still seeing this too: Sys.setenv("PATH" = "/opt/homebrew/bin/:/bin")
renv::scaffold()
#> * renv infrastructure has been generated for project "/private/tmp/RtmpQVJX13/reprex-13dda40d69662-odd-tuna".
strsplit(Sys.getenv("PATH")[[1]], ":")
#> [[1]]
#> [1] "/opt/homebrew/bin/" "/bin"
renv::load()
strsplit(Sys.getenv("PATH")[[1]], ":")
#> [[1]]
#> [1] "/opt/homebrew/bin/" "/opt/homebrew/bin/" "/bin" Created on 2023-05-11 with reprex v2.0.2 |
* Don't duplicate paths Fixes #1095 * Improve tests * Revert output changes * WS
Hi,
renv::load()
appears to be duplicating some of the paths in thePATH
environment variable.In my R project, I run the following prior to loading
renv
.renv:::renv_envvar_get("PATH")
Then I run
renv::load()
andrenv:::renv_envvar_get("PATH")
.I have
RENV_AUTOLOADER_ENABLED = FALSE
in my.Renviron
.Best wishes,
Lucy
The text was updated successfully, but these errors were encountered: