无法在Jupyter Notebook中安装R软件包'klaR'

时间:2020-03-27 14:18:27

标签: r jupyter-notebook

我正在尝试在Jupyter Notebook的R中运行trControl。

但是当我尝试跑步时,我得到了:

1 package is needed for this model and is not installed. (klaR). Would you like to try to install it now?

所以我尝试使用:

install.packages('klaR')

但是系统给了我以下错误信息:

also installing the dependencies ‘e1071’, ‘classInt’, ‘questionr’

Warning message in install.packages("klaR", repo = "https://mac.R-project.org"):
“installation of package ‘e1071’ had non-zero exit status”
Warning message in install.packages("klaR", repo = "https://mac.R-project.org"):
“installation of package ‘classInt’ had non-zero exit status”
Warning message in install.packages("klaR", repo = "https://mac.R-project.org"):
“installation of package ‘questionr’ had non-zero exit status”
Warning message in install.packages("klaR", repo = "https://mac.R-project.org"):
“installation of package ‘klaR’ had non-zero exit status”
Updating HTML index of packages in '.Library'

Making 'packages.html' ...
 done

如何解决此问题?谢谢!

0 个答案:

没有答案