I try to install dplyr package using command install.packages("dplyr"). I get following error. Could anyone identify what is the issue here? Am I missing someting?
Warning in install.packages :
InternetOpenUrl failed: ' âˆû'
Warning in install.packages :
InternetOpenUrl failed: ' âˆû'
Warning in install.packages :
InternetOpenUrl failed: ' âˆû'
Warning in install.packages :
unable to access index for repository http://cran.rstudio.com/src/contrib:
cannot open URL 'http://cran.rstudio.com/src/contrib/PACKAGES'
Installing package into ‘C:/Users/mani/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
InternetOpenUrl failed: ' âˆû'
Warning in install.packages :
InternetOpenUrl failed: ' âˆû'
Warning in install.packages :
InternetOpenUrl failed: ' âˆû'
Warning in install.packages :
unable to access index for repository http://cran.rstudio.com/src/contrib:
cannot open URL 'http://cran.rstudio.com/src/contrib/PACKAGES'
Warning in install.packages :
package ‘dplyr’ is not available (for R version 3.4.0)
Warning in install.packages :
InternetOpenUrl failed: ' âˆû'
Warning in install.packages :
InternetOpenUrl failed: ' âˆû'
Warning in install.packages :
InternetOpenUrl failed: ' âˆû'
Warning in install.packages :
unable to access index for repository http://cran.rstudio.com/bin/windows/contrib/3.4:
cannot open URL 'http://cran.rstudio.com/bin/windows/contrib/3.4/PACKAGES'
Related
This is my first post in the stack though this has been my go to option for any coding related issue for a long time. So recently my machine was reconfigured and I had to reinstall with the IT support all my IDEs including R and RStudio. Since then I am getting this vexing issue of installing any new R package and even existing R packages keep throwing error that it's not installed or can't connect to CRAN mirror
> .libPaths()
[1] "H:/My Documents/R/R-3.3.2" "H:/My Documents/R/R-3.3.2/library" "C:/R/R-3.5.3/library"
> .libPaths("C:/R/R-3.5.3/library")
> install.packages("DBI",repos="https://cran.rstudio.com/")
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 :
InternetOpenUrl failed: 'The server name or address could not be resolved'
Warning in install.packages :
unable to access index for repository http://cran.rstudio.com/src/contrib:
cannot open URL 'http://cran.rstudio.com/src/contrib/PACKAGES'
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 :
InternetOpenUrl failed: 'The server name or address could not be resolved'
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/src/contrib:
cannot open URL 'https://cran.rstudio.com/src/contrib/PACKAGES'
Warning in install.packages :
package ‘DBI’ is not available (for R version 3.5.3)
Warning in install.packages :
InternetOpenUrl failed: 'The server name or address could not be resolved'
Warning in install.packages :
I saw this was posted in another thread here:
R - cannot access urls for package installation
I tried all recommendations in here, still couldn't get it fixed. Any idea what else could be broken. Much appreciate your reponse. BTW, I am not an R pro either, just a little bit hands on.
I get this error
Installing package into ‘C:/Users/XXXXX/Downloads/RPackages’
(as ‘lib’ is unspecified)
Warning in install.packages :
InternetOpenUrl failed: 'A connection with the server could not be established'
Warning in install.packages :
InternetOpenUrl failed: 'A connection with the server could not be established'
Warning in install.packages :
InternetOpenUrl failed: 'A connection with the server could not be established'
Warning in install.packages :
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'
Warning in install.packages :
InternetOpenUrl failed: 'A connection with the server could not be established'
Warning in install.packages :
InternetOpenUrl failed: 'A connection with the server could not be established'
Warning in install.packages :
InternetOpenUrl failed: 'A connection with the server could not be established'
Warning in install.packages :
unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.4:
cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.4/PACKAGES'
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/shinythemes_1.1.1.zip'
Content type 'application/zip' length 999652 bytes (976 KB)
downloaded 976 KB
That is, Rstudio keeps trying to connect to other URLs and only succeeds when it connects to https://cran.rstudio.com/bin/windows/contrib/3.4/shinythemes_1.1.1.zip
Why is this the case?
I set my GLOBAL (CDN) Rstudio, Secure HTTP method and using Internet Explorer Proxy Settings for HTTP method.
It seems an index server crashed. You should use RGUI instead of RStudio to install package(s), set option firstly.
I have trouble with installing packages from internet:
> 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
I've checked the repositories, proxy and set debug info:
> 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] ""
I've unchecked: R-studio->Tools->Global Options->Use Internet Explorer library/proxy for HTTP (I've also tried pure R without R-studio with same results)
Seems the problem is with internet access:
> 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'
Here comes interesting part, seems that the problem is not with internet access:
> library(RCurl)
> content <- getURL(url.link)
> nchar(content)
[1] 13537
Why install.packages and download.file aren't working while getURL is working?
PS: OS is Windows 7 running on corporate notebook so there are AV/FW installed that I cannot disable (I'm not admininstrator).
This is a guess.
I think you have a new version of RStudio but an old version of R. In my experience you can install the package if you just use R, i.e. not through RStudio. I would recommend updating both R and RStudio to the latest versions.
I think the issue arises because RStudio enforces https, which is only introduced in a later version of R.
I'm trying to install the dplyr package in R.
When I do it I get the following error:
> install.packages("dplyr")
Warning in install.packages :
InternetOpenUrl failed: ''
Warning in install.packages :
InternetOpenUrl failed: ''
Warning in install.packages :
unable to access index for repository https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib
Installing package into ‘C:/Users/Matt/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
Warning in install.packages :
InternetOpenUrl failed: ''
Warning in install.packages :
InternetOpenUrl failed: ''
Warning in install.packages :
unable to access index for repository https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib
Warning in install.packages :
package ‘dplyr’ is not available (for R version 3.2.2)
Warning in install.packages :
InternetOpenUrl failed: ''
Warning in install.packages
InternetOpenUrl failed: ''
Warning in install.packages :
unable to access index for repository https://mirrors.tuna.tsinghua.edu.cn/CRAN/bin/windows/contrib/3.2
I am able to install some packages and not others where I get this error. I have changed the mirror. Also I have uninstalled R and R studio and reinstalled. No luck.
Can anyone help?
Thank you.
I have an answer - but it isn't what I'd consider "good". I just kept trying to load the package and finally it worked. I know that my connection was good which suggests to me it was a problem at the CRAN mirror. However, that doesn't make complete sense because I manually changed mirrors and had the same problem. So unless the mirrors are somehow really tied together in real time I'm not sure how that could be the problem. So - my "not good" advice is to just keep trying to load the package over an extended period of time and it (hopefully) should work.
I have to work with shapefiles and to convert these to rasters the package rgdal is recommended, however the package is not recognized (R v2.11, RStudio 0.98.501, Mac OS X 10_7_5). How could I still install rgdal or omit this package?
To clarify my question more, the error messages are:
> install.packages("rgdal")
Warning in install.packages :
cannot open: HTTP status was '404 Not Found'
Warning in install.packages :
cannot open: HTTP status was '404 Not Found'
Warning in install.packages :
unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/macosx/leopard/contrib/2.11
Warning in install.packages :
argument 'lib' is missing: using '/Users/myname/Library/R/2.11/library'
Warning in install.packages :
cannot open: HTTP status was '404 Not Found'
Warning in install.packages :
cannot open: HTTP status was '404 Not Found'
Warning in install.packages :
unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/macosx/leopard/contrib/2.11
Warning in install.packages :
package ‘rgdal’ is not available