R studio caret package 安装

R安装caret包

安装代码

install.packages("caret")

安装过程中无法打开文件,报错:

Warning in install.packages :
  URL 'http://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6/caret_6.0-86.tgz': status was 'Failure when receiving data from the peer'
Error in download.file(url, destfile, method, mode = "wb", ...) : 
  download from 'http://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6/caret_6.0-86.tgz' failed
Warning in install.packages :
  download of package ‘caret’ failed
  

解决方法

install.packages("http://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.6/caret_6.0-86.tgz", repos = NULL)

参考链接: https://stackoverflow.com/questions/29986476/r-download-of-package-plyr-failed

你可能感兴趣的:(R studio caret package 安装)