Closed petbrueck closed 2 years ago
@petbrueck, I'm so sorry my clumsy code scrubbed your .Renviron
file. (Sidebar: one day, I'd love to hear what settings you have there 😉 )
Let me try to fix this this weekend.
@petbrueck , would you mind checking that this resolves the issue on your end? On my machine, this fix seems to work. Also, I wrote a few tests to check that this works in general. That said, I may have missed something. And I certaintly don't want this function deleting the contents of .REnviron
files where they exist.
@arthur-shaw, just checked: Works perfectly now! Thanks a lot!
Thanks a lot for this useful package!
Issue For already existing .Renviron-file in my home directory: If I set my credentials with
set_credentials()
, any other envars in file .Renviron are erased.Location of issue I think the issue is with the following ifelse condition for
new_env_vars
.In case no "SUSO_*" envar existed before it will return
new_env_vars==""
Potential(?) fix Just write new .Renviron at this stage in case there are "SUSO_*" envars:
Current workaround Set envars SUSO_* manually:
file.edit("~/.Renviron")