我在一个数字海洋服务器上安装了免费的rstudio服务器。我把一切都做好了,但是我想定制我的.RProfile。
我跑了:
candidates <- c( Sys.getenv("R_PROFILE"),
file.path(Sys.getenv("R_HOME"), "etc", "Rprofile.site"),
Sys.getenv("R_PROFILE_USER"),
file.path(getwd(), ".Rprofile") )
file.edit(Filter(file.exists, candidates))它在RStudio中打开了文件,但是它说我没有权利覆盖它。我不应该是root来更新RProfile,因为理论上不同的用户可能有不同的RProfiles。
有人知道如何在上更新.RProfiles吗?
发布于 2016-09-30 20:45:54
该命令找到要编辑的现有.Rprofile。您可能希望为用户帐户创建一个新的.Rprofile。这应该是一项工作:
file.edit("~/.Rprofile")https://stackoverflow.com/questions/39799210
复制相似问题