[英]How do I update my .RProfile on RStudio Server
I installed the free rstudio server on a digital ocean server. 我在数字海洋服务器上安装了免费的rstudio服务器。 I got everything going, but I wanted to customize my .RProfile.
我一切顺利,但我想自定义我的.RProfile。
I ran: 我跑了:
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))
Which opened the file in RStudio, but it said I didn't have the rights to overwrite it. 后者在RStudio中打开了文件,但它说我无权覆盖它。 I shouldn't have to be
root
to update the RProfile since different users in theory could have different RProfiles. 由于理论上不同的用户可能拥有不同的RProfile,因此我不必是
root
即可更新RProfile。
Does anyone know how to update .RProfiles on R Studio Server? 有谁知道如何在R Studio Server上更新.RProfiles?
That command finds an existing .Rprofile to edit. 该命令将找到一个现有的 .Rprofile进行编辑。 You probably want to create a new .Rprofile for your user account.
您可能想为您的用户帐户创建一个新的 .Rprofile。 This should do the job:
这应该做的工作:
file.edit("~/.Rprofile")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.