Does sys.setenv() modify the .Rprofile or .Renviron?

Viewed 308

I have been reading about the differences between these files but can't find even in the Sys.setenv() documentation which of these files the function is intended to modify?

1 Answers
  • You can use Sys.setenv() for modifying the .Rprofile file.
  • You can use usethis::edit_r_environ() for modifying the .Renviron file.

There's a wealth of information in this RStudio blog page about the difference between the two.

Related