【问题标题】:How do I update my .RProfile on RStudio Server如何在 RStudio Server 上更新我的 .RProfile
【发布时间】:2016-09-30 19:57:55
【问题描述】:

我在数字海洋服务器上安装了免费的 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 吗?

【问题讨论】:

    标签: r rstudio rstudio-server


    【解决方案1】:

    该命令找到要编辑的现有 .Rprofile。您可能想为您的用户帐户创建一个 .Rprofile。这应该可以完成工作:

    file.edit("~/.Rprofile")
    

    【讨论】:

      猜你喜欢
      • 2013-02-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-02-27
      • 2015-07-24
      • 2016-02-01
      相关资源
      最近更新 更多