2

尝试caret在 IBM Watson Studio R 笔记本上安装 R 包时,它会安装很多依赖项,但最终失败并出现非零退出状态错误。recipes由于某种原因无法安装依赖项。

install.packages('caret')

Installing package into ‘/.../R/libs’
(as ‘lib’ is unspecified)
also installing the dependencies ‘numDeriv’, ‘SQUAREM’, ‘lava’, ‘kernlab’, ‘CVST’, ‘DEoptimR’, ‘prodlim’, ‘DRR’, ‘robustbase’, ‘sfsmisc’, ‘ipred’, ‘dimRed’, ‘lubridate’, ‘ddalpha’, ‘gower’, ‘RcppRoll’, ‘tidyselect’, ‘recipes’, ‘withr’

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”
4

1 回答 1

2

该包caret导入了许多其他 R 包。其中之一是recipes, 依次导入包,如,purrr等。最新的包似乎依赖于从未加载到命名空间的包中调用的映射函数。更新(可能还有其他软件包的列表)可能会解决问题。我选择降低一个版本并节省大量重新安装。这对我有用:lubridatetibblerecipesmap_dfrpurrrpurrrrecipes

install.packages('https://cran.r-project.org/src/contrib/Archive/recipes/recipes_0.1.0.tar.gz')
install.packages('caret')
library('caret')
于 2018-02-05T09:23:42.687 回答