You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
During the class activity, I was unable to retrieve the user level environment variable.
usethis::edit_r_environ("user")
#> • Edit '/Users/caseyross/.Renviron'
#> • Restart R for changes to take effect
In the .Renviron file I typed:
WTF_USER=CaseyRoss
But then I get an empty character when trying to retrieve it
Sys.getenv("user")
#> [1] ""
The project level setting worked when I was troubleshooting with David, but now it is also returning an empty character. David suspected that the space in my "Data Science" folder name may be causing the trouble.
usethis::edit_r_environ("project")
✔ Setting active project to '/Users/caseyross/Data Science/personal-radmin'
#> • Modify '.Renviron'
#> • Restart R for changes to take effect
WTF_PROJECT=CaseyRoss
Sys.getenv("project")
#> [1] ""
The text was updated successfully, but these errors were encountered:
Thank you for reporting @caseywross! I believe this is due to the confusion of .Renviron files not being additive between user and project. Does that make sense now?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
During the class activity, I was unable to retrieve the user level environment variable.
In the .Renviron file I typed:
But then I get an empty character when trying to retrieve it
The project level setting worked when I was troubleshooting with David, but now it is also returning an empty character. David suspected that the space in my "Data Science" folder name may be causing the trouble.
The text was updated successfully, but these errors were encountered: