Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

問題

當嘗試安裝任何 R 封裝您的系統上,例如︰

install.packages("proto")

 

您收到的錯誤,如下所示︰

已下載的來源封裝位於
?/tmp/Rtmph4YKLX/downloaded_packages?
更新的 HTML 索引中的封裝 '。程式庫 '
在 install.packages 中的警告︰
無法建立檔案
' / opt/POC/lib64/Revo-7.3/R-3.1.1/lib64/R/doc/html/packages.html',原因
拒絕權限 ''

方案

當您沒有必要的檔案權限,才能夠以使用者目前的 R 文件庫資料夾的寫入權時,會發生這個錯誤

您目前登入為。  您可以使用 '.libPaths()' R 函數,這兩個查詢,並變更 R 要用來安裝新的使用者提供媒體櫃的目前位置。

例如︰

>.libPaths("/home/testuser/Rlib")

 

若要變更預設的位置,以永久加入 R 使用者提供的程式庫,您可以將這加入至您的使用者專屬。'Rprofile' 的檔案或整個系統 '。Rprofile.site' 中 ' / usr/lib64/Revo-7.3/R-3.1.1/lib64/R/etc' 時,如果您需要變更此設定,為所有 R 使用者。

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×