У меня есть проблемы с установкой пакетов из интернета:Почему install.packages и download.file не работают, пока RCurl :: getURL is?
> install.packages("qualV")
Warning in install.packages :
InternetOpenUrl failed: 'The server name or address could not be resolved'
Warning in install.packages :
InternetOpenUrl failed: 'The server name or address could not be resolved'
Warning in install.packages :
unable to access index for repository https://mirror.ibcp.fr/pub/CRAN/src/contrib
Warning in install.packages :
InternetOpenUrl failed: 'The server name or address could not be resolved'
Warning in install.packages :
InternetOpenUrl failed: 'The server name or address could not be resolved'
Warning in install.packages :
unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/src/contrib
Warning in install.packages :
InternetOpenUrl failed: 'The server name or address could not be resolved'
Warning in install.packages :
InternetOpenUrl failed: 'The server name or address could not be resolved'
Warning in install.packages :
unable to access index for repository https://mirror.ibcp.fr/pub/CRAN/src/contrib
Warning in install.packages :
InternetOpenUrl failed: 'The server name or address could not be resolved'
Warning in install.packages :
InternetOpenUrl failed: 'The server name or address could not be resolved'
Warning in install.packages :
unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/src/contrib
Warning in install.packages :
package ‘qualV’ is not available (for R version 3.2.2)
Warning in install.packages :
InternetOpenUrl failed: 'The server name or address could not be resolved'
Warning in install.packages :
InternetOpenUrl failed: 'The server name or address could not be resolved'
Warning in install.packages :
unable to access index for repository https://mirror.ibcp.fr/pub/CRAN/bin/windows/contrib/3.2
Warning in install.packages :
InternetOpenUrl failed: 'The server name or address could not be resolved'
Warning in install.packages :
InternetOpenUrl failed: 'The server name or address could not be resolved'
Warning in install.packages :
unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.2
Я проверил хранилищами, прокси-сервер и установить данные отладки:
> options(internet.info = 0)
> options()$repos
CRAN CRANextra
"https://mirror.ibcp.fr/pub/CRAN/" "http://www.stats.ox.ac.uk/pub/RWin"
attr(,"RStudio")
[1] TRUE
>
> Sys.getenv("http_proxy")
[1] ""
> Sys.getenv("https_proxy")
[1] ""
Я бесконтрольно: R-studio->Tools->Global Options->Use Internet Explorer library/proxy for HTTP
(я также пытался чистый R без R-студии с теми же результатами)
Кажется, что проблема с доступом в Интернет:
> url.link <- "https://stat.ethz.ch/R-manual/R-devel/library/utils/html/download.file.html"
> content <- download.file(url.link, destfile = "download.file.html")
trying URL 'https://stat.ethz.ch/R-manual/R-devel/library/utils/html/download.file.html'
Error in download.file(url.link, destfile = "download.file.html") :
cannot open URL 'https://stat.ethz.ch/R-manual/R-devel/library/utils/html/download.file.html'
In addition: Warning message:
In download.file(url.link, destfile = "download.file.html") :
InternetOpenUrl failed: 'The server name or address could not be resolved'
вот интересная часть, кажется, что проблема не связана с доступом в Интернет:
> library(RCurl)
> content <- getURL(url.link)
> nchar(content)
[1] 13537
Почему install.packages
и download.file
не работают в то время как getURL
работает?
PS: ОС - Windows 7 работает на корпоративном ноутбуке, поэтому есть AV/FW, который я не могу отключить (я не администратор).
я сделал это, но результат был тот же, как и предыдущий. Затем я отключил прокси-сервер в Internet Explorer и включил «R-studio-> Tools-> Global Options-> Use Internet Explorer library/proxy для HTTP'. Теперь он работает. Благодарю. –