简体   繁体   English

sys.setenv() 是否修改.Rprofile 或.Renviron?

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

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?我一直在阅读这些文件之间的差异,但即使在Sys.setenv()文档中也找不到 function 打算修改哪些文件?

  • You can use Sys.setenv() for modifying the .Rprofile file.您可以使用Sys.setenv()来修改.Rprofile文件。
  • You can use usethis::edit_r_environ() for modifying the .Renviron file.您可以使用usethis::edit_r_environ()来修改.Renviron文件。

There's a wealth of information in this RStudio blog page about the difference between the two. 此 RStudio 博客页面中有大量关于两者之间区别的信息。

according to this post , Sys.setenv() can also modify.Renviron so how do we specify which of the two it will modify?根据这篇文章Sys.setenv()也可以修改.Renviron 那么我们如何指定它将修改两者中的哪一个呢?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 用 Sys.setenv 中的 rlang tidyeval 替换 `=` 运算符中的 LHS - substitute LHS in `=` operator with rlang tidyeval inside Sys.setenv Sys.setenv(“ SNC_LIB” = lib_path_64)失败 - Sys.setenv(“SNC_LIB” = lib_path_64) fails 为什么在尝试构建 STAN 模型时出现“Sys.setenv 错误(R_MAKEVARS_USER = NULL):参数长度错误”错误? - Why do I get "Error in Sys.setenv(R_MAKEVARS_USER = NULL) : wrong length for argument" error when trying to build a STAN model? `Rprofile`、`Renviron` 和 `Rprofile.site`、`Renviron.site` 有什么区别? - What is the difference betwwen `Rprofile`,`Renviron` and `Rprofile.site`,`Renviron.site`? 从活动的R会话重新加载.Renviron或.Rprofile(不重启R)? - Reload .Renviron or .Rprofile from an active R session (without restarting R)? 如何从 JupyterLab 中的现有 R 项目加载 .Rprofile 和 .Renviron 文件? - How to load .Rprofile and .Renviron files from an existing R project in JupyterLab? 在 .Rprofile 和 .Renviron 中设置 R 的默认行为。 了解在何处做什么 - Setting R's default behaviour in .Rprofile and .Renviron. Understanding what to do where 如何修改并保存Windows下的Rprofile.site? - How to modify and save Rprofile.site under Windows? RStudio不会从Rprofile.site执行`system`命令 - RStudio does not execute `system` commands from Rprofile.site 为什么要求.Rprofile中的包不会覆盖基本函数? - Why does requiring a package in .Rprofile not override a base function?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM