我一直在阅读这些文件之间的差异,但即使在Sys.setenv()
文档中也找不到函数要修改这些文件中的哪一个?
- 您可以使用
Sys.setenv()
来修改.Rprofile
文件 - 可以使用
usethis::edit_r_environ()
修改.Renviron
文件
这个RStudio博客页面上有大量关于两者差异的信息。