0
我設置了一個Ubuntu VM並且無法安裝軟件包。目錄問題,無法安裝RStudio服務器軟件包Ubuntu
Installing package into ‘/home/username/R/x86_64-pc-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
它看起來像所有默認包都保存在/usr/lib/R/library
但並RStudio試圖新包寫入/home/username/R/x86_64-pc-linux-gnu-library/3.0
.libPaths()
[1] "/home/username/R/x86_64-pc-linux-gnu-library/3.0" "/usr/local/lib/R/site-library"
[3] "/usr/lib/R/site-library" "/usr/lib/R/library"
我也試着包直接通過上傳到/usr/lib/R/library
FileZilla但我收到以下錯誤消息
mkdir /usr/lib/R/library/jsonlite: permission denied
如何安裝我需要的軟件包?