插入符号包无法在Azure Notebooks中以非零退出状态安装

时间:2019-05-05 00:51:30

标签: r azure jupyter-notebook

我正在尝试在Azure Jupyter笔记本中安装插入符号包,但是我收到以下警告并以非零退出状态退出。

我尝试以其他答案和论坛中列出的几种方式安装软件包:

#1
install.packages('caret', dependencies=TRUE) 

错误:

Installing package into ‘/home/nbuser/R’
(as ‘lib’ is unspecified)
also installing the dependency ‘recipes’

Warning message in install.packages("caret", dependencies = TRUE):
“installation of package ‘recipes’ had non-zero exit status”Warning message in install.packages("caret", dependencies = TRUE):
“installation of package ‘caret’ had non-zero exit status”
#2
install.packages(c('ddalpha', 'recipes'))
install.packages('caret', dependencies=True)

错误:

Installing packages into ‘/home/nbuser/R’
(as ‘lib’ is unspecified)
Warning message in install.packages(c("ddalpha", "recipes")):
“installation of package ‘ddalpha’ had non-zero exit status”Warning message in install.packages(c("ddalpha", "recipes")):
“installation of package ‘recipes’ had non-zero exit status”Installing package into ‘/home/nbuser/R’
(as ‘lib’ is unspecified)
also installing the dependency ‘recipes’

Warning message in install.packages("caret"):
“installation of package ‘recipes’ had non-zero exit status”Warning message in install.packages("caret"):
“installation of package ‘caret’ had non-zero exit status”

我希望在Azure Jupyter笔记本中安装插入符号库不会出现任何错误。

1 个答案:

答案 0 :(得分:0)

当路径不清晰时发生。因此,您需要自行设置lib。

例如

.libPaths(C:/Program Files/R/)

有时,如果文件夹名称中有空格,则可能无法识别它。然后,设置其他路径或更改文件夹名称。