[英]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中打開了文件,但它說我無權覆蓋它。 由於理論上不同的用戶可能擁有不同的RProfile,因此我不必是root
即可更新RProfile。
有誰知道如何在R Studio Server上更新.RProfiles?
該命令將找到一個現有的 .Rprofile進行編輯。 您可能想為您的用戶帳戶創建一個新的 .Rprofile。 這應該做的工作:
file.edit("~/.Rprofile")
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.