无法安装插入符号:没有名为“ recipes”的软件包

时间:2019-07-08 03:26:24

标签: r r-caret

我的ROCR很好。我需要confusionMatrix的摘要。

caret::confusionMatrix(pred,test$abc)  # NOT WORKING

运行上面的代码时,出现以下错误

  

loadNamespace(i,c(lib.loc,.libPaths()),versionCheck = vI [[i]])中的错误:     没有名为“食谱”的软件包

我尝试在此处搜索答案并执行

install.packages(caret,dependencies = TRUE)
install.packages('caret', dependencies=c('ddalpha', 'recipes'))
  • 工具->安装软件包
  • 开始新的会话
  • 重新启动RStudio

在我开始探索性数据分析之前执行install.packages(caret)library(caret)时,我得到以下消息:

install.packages('caret')
also installing the dependency ‘recipes’

  There is a binary version available but the source version is later:
        binary source needs_compilation
recipes  0.1.5  0.1.6             FALSE

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/caret_6.0-84.zip'
Content type 'application/zip' length 6235556 bytes (5.9 MB)
downloaded 5.9 MB

package ‘caret’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\*\downloaded_packages
installing the source package ‘recipes’

trying URL 'https://cran.rstudio.com/src/contrib/recipes_0.1.6.tar.gz'
Content type 'application/x-gzip' length 968331 bytes (945 KB)
downloaded 945 KB

Warning in install.packages :
  installation of package ‘recipes’ had non-zero exit status

The downloaded source packages are in
‘C:\Users\*\downloaded_packages’

library(caret)
  

错误:在loadNamespace(i,c(lib.loc,.libPaths()),versionCheck = vI [[i]])中,对于'插入符'的包或名称空间加载失败:    没有名为“食谱”的软件包

0 个答案:

没有答案