-
Notifications
You must be signed in to change notification settings - Fork 8
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
Reload .env after updates fail #15
Comments
A workaround I've found is to manually run |
Thanks, that solved it for me as well. Fortunately there are not that many updates but still. |
Maybe dotenv could unload itself, so the repeated |
This is actually pretty difficult, so I won't do it. However, a good workaround is to use
in your script. Or, if you want to condition it on the existence of
With this, the script will re-load |
Yes, running If unloading is difficult, /which I presume is it, I recommend changing the 'Usage' in the README to:
Then I think this issue is solved. :) |
Steps to reproduce:
library(dotenv)
.env
fileThe
Sys.getenv("TEST_VAR")
still reports the old value ofTEST_VAR
.The text was updated successfully, but these errors were encountered: