簡體   English   中英

在Jupyter中安裝R軟件包

[英]Install R package in Jupyter

我一直在周末嘗試在運行Ubuntu 16.04的Jupyter Notebook的R內核(3.4.2)上安裝mosaiccar和其他一些軟件包。 我嘗試過install.packages('car', '/home/jayaramdas/anaconda3/lib/R/library/', repos='http://cran.us.r-project.org') :它返回:也安裝依賴項“ pbkrtest”

Warning message in install.packages("car", "/home/jayaramdas/anaconda3/lib/R/library/", : “installation of package 'pbkrtest' had non-zero exit status”Warning message in install.packages("car", "/home/jayaramdas/anaconda3/lib/R/library/", : “installation of package 'car' had non-zero exit status”

我已經嘗試將其安裝在原始R軟件包中,並且得到以下Warning messages: 1: In install.packages("car", "/home/jayaramdas/anaconda3/lib/R/library/", : installation of package 'pbkrtest' had non-zero exit status 2: In install.packages("car", "/home/jayaramdas/anaconda3/lib/R/library/", : installation of package 'car' had non-zero exit statusWarning messages: 1: In install.packages("car", "/home/jayaramdas/anaconda3/lib/R/library/", : installation of package 'pbkrtest' had non-zero exit status 2: In install.packages("car", "/home/jayaramdas/anaconda3/lib/R/library/", : installation of package 'car' had non-zero exit status

我嘗試使用Rstudio進行安裝,但不允許我編寫文件。 我還嘗試下載Ubuntu的zip文件,但仍然出現“非零退出” error. Is this a usual problem that people have with error. Is this a usual problem that people have with汽車和其他R套件時遇到error. Is this a usual problem that people have with嗎? 我只是想弄清楚如何將一些軟件包添加到我的jupyter筆記本中。

您正在使用Ubuntu。 您要使用包管理器( conda )。

我可以建議您使用本嗎?

sudo apt-get install r-cran-car

安裝car及其所有依賴項。 如果不是,請提交Ubuntu錯誤報告。

同樣,你可以從Ubuntu的獲得更多包: apt-cache search 'r-cran-*' 一旦考慮了Rutter的PPA,您就已經預建了CRAN的很大一部分。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM