如何在 RStudio Server 上更新我的 .RProfile
How do I update my .RProfile on RStudio Server
我在数字海洋服务器上安装了免费的 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,因为理论上不同的用户可能有不同的 RProfile。
有人知道如何在 R Studio Server 上更新 .RProfiles 吗?
该命令找到一个现有的 .Rprofile 进行编辑。您可能想为您的用户帐户创建一个 new .Rprofile。这应该可以完成工作:
file.edit("~/.Rprofile")
我在数字海洋服务器上安装了免费的 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,因为理论上不同的用户可能有不同的 RProfile。
有人知道如何在 R Studio Server 上更新 .RProfiles 吗?
该命令找到一个现有的 .Rprofile 进行编辑。您可能想为您的用户帐户创建一个 new .Rprofile。这应该可以完成工作:
file.edit("~/.Rprofile")