невозможно установить пакет Caret в R - PullRequest
0 голосов
/ 25 июня 2018

Когда я пытаюсь установить пакет Caret в R, я получаю следующее сообщение об ошибке:

 utils:::menuInstallPkgs()

--- Please select a CRAN mirror for use in this session ---
Warning: failed to download mirrors file (cannot open URL 'https://cran.r-project.org/CRAN_mirrors.csv'); using local file 'C:/PROGRA~1/R/R-34~1.0/doc/CRAN_mirrors.csv'
Warning: unable to access index for repository https://rweb.crmda.ku.edu/cran/src/contrib:
  cannot open URL 'https://rweb.crmda.ku.edu/cran/src/contrib/PACKAGES'
Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/src/contrib:
  cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/src/contrib/PACKAGES'
Error in install.packages(NULL, .libPaths()[1L], dependencies = NA, type = type) : 
  no packages were specified
In addition: Warning message:
In download.file(url, destfile = f, quiet = TRUE) :
  InternetOpenUrl failed: 

Как я могу это решить?

1 Ответ

0 голосов
/ 25 июня 2018

Попробуйте любой из следующих способов:

Изменить: изменил https на http

install.packages("http://cran.r-project.org/src/contrib/caret_6.0-80.tar.gz",
                 repos=NULL, method="libcurl")

или

library(devtools)
install_url("http://cran.r-project.org/src/contrib/caret_6.0-80.tar.gz")
...