Damion Reeves
2015-Nov-02 00:34 UTC
[R] CentOS 6.5 x86_64 R installation throwing "Error in download.file(url, destfile = f, quiet = TRUE) : unsupported URL scheme" error
Just wondering if any CRAN or "R" guru out there might have seen something like this....and could advise a potential fix (or advise what, if anything I've missed) ? I've installed pre-req packages without an issue: [hostname ]# *yum install libxml2-devel git svn gtk+-devel gtk2-devel gnutls-devel openssl-devel mysql-devel* [hostname ]# *yum install R-core* [hostname ]# *yum install R-core-devel* [hostname ]# *yum groupinstall "Development Tools"* I can start "R": [hostname ]# *R* R version 3.2.0 (2015-04-16) -- "Full of Ingredients" Copyright (C) 2015 The R Foundation for Statistical Computing Platform: x86_64-redhat-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > q() Save workspace image? [y/n/c]: n But when I try and install packages, I get the following (and it doesn't show the Australian CRAN mirror which I think is normally option 5 and 6): [hostname ]# *R* R version 3.2.0 (2015-04-16) -- "Full of Ingredients" Copyright (C) 2015 The R Foundation for Statistical Computing Platform: x86_64-redhat-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > *install.packages(c('rJava','RJDBC','sqldf','forecast','ggplot2','plyr','dplyr','tidyr','Rcpp','devtools','googleVis','arules','RCurl','corrgram','base64enc','lubridate','randomForest','shiny','oz','WDI','Hmisc'))* Installing packages into ?/usr/lib64/R/library? (as ?lib? is unspecified) --- Please select a CRAN mirror for use in this session --- *Error in download.file(url, destfile = f, quiet = TRUE) : unsupported URL scheme* HTTPS CRAN mirror 1: 0-Cloud [https] 2: Austria [https] 3: China (Beijing 4) [https] 4: China (Hefei) [https] 5: Colombia (Cali) [https] 6: France (Lyon 2) [https] 7: Iceland [https] 8: Russia (Moscow 1) [https] 9: Switzerland [https] 10: UK (Bristol) [https] 11: UK (Cambridge) [https] 12: USA (CA 1) [https] 13: USA (KS) [https] 14: USA (MI 1) [https] 15: USA (TN) [https] 16: USA (TX) [https] 17: USA (WA) [https] 18: (HTTP mirrors) Selection: 0 Error in contrib.url(repos, type) : trying to use CRAN without setting a mirror> *q()*Save workspace image? [y/n/c]: *n* -- *Regards,* *Damion Reeves* | Platform Engineer *Contexti | Big Data Analytics* Level 4, 80 Clarence Street Sydney NSW damion at contexti.com | +61 422 927 757 | http://www.contexti.com [[alternative HTML version deleted]]
peter dalgaard
2015-Nov-02 07:57 UTC
[R] CentOS 6.5 x86_64 R installation throwing "Error in download.file(url, destfile = f, quiet = TRUE) : unsupported URL scheme" error
3.2.0 is the problem. Support for HTTPS was streamlined in 3.2.2. You either need to choose an HTTP mirror (if you can trust your communication lines -- the reason for the change is that it was a security hole for people with untrusted connections: free wifi, etc.), or figure out how to install 3.2.2 on CentOS. For the latter, I suppose that you need a different YUM repo, but I've gone too rusty on the RedHat/Fedora/CentOS specifics. -pd> On 02 Nov 2015, at 01:34 , Damion Reeves <damion at contexti.com> wrote: > > Just wondering if any CRAN or "R" guru out there might have seen something > like this....and could advise a potential fix (or advise what, if anything > I've missed) ? > > > I've installed pre-req packages without an issue: > > [hostname ]# *yum install libxml2-devel git svn gtk+-devel gtk2-devel > gnutls-devel openssl-devel mysql-devel* > > [hostname ]# *yum install R-core* > > [hostname ]# *yum install R-core-devel* > > [hostname ]# *yum groupinstall "Development Tools"* > > > I can start "R": > > > [hostname ]# *R* > > R version 3.2.0 (2015-04-16) -- "Full of Ingredients" > Copyright (C) 2015 The R Foundation for Statistical Computing > Platform: x86_64-redhat-linux-gnu (64-bit) > > R is free software and comes with ABSOLUTELY NO WARRANTY. > You are welcome to redistribute it under certain conditions. > Type 'license()' or 'licence()' for distribution details. > > Natural language support but running in an English locale > > R is a collaborative project with many contributors. > Type 'contributors()' for more information and > 'citation()' on how to cite R or R packages in publications. > > Type 'demo()' for some demos, 'help()' for on-line help, or > 'help.start()' for an HTML browser interface to help. > Type 'q()' to quit R. > >> q() > Save workspace image? [y/n/c]: n > > > > > But when I try and install packages, I get the following (and it doesn't > show the Australian CRAN mirror which I think is normally option 5 and 6): > > > [hostname ]# *R* > > R version 3.2.0 (2015-04-16) -- "Full of Ingredients" > Copyright (C) 2015 The R Foundation for Statistical Computing > Platform: x86_64-redhat-linux-gnu (64-bit) > > R is free software and comes with ABSOLUTELY NO WARRANTY. > You are welcome to redistribute it under certain conditions. > Type 'license()' or 'licence()' for distribution details. > > Natural language support but running in an English locale > > R is a collaborative project with many contributors. > Type 'contributors()' for more information and > 'citation()' on how to cite R or R packages in publications. > > Type 'demo()' for some demos, 'help()' for on-line help, or > 'help.start()' for an HTML browser interface to help. > Type 'q()' to quit R. > >> *install.packages(c('rJava','RJDBC','sqldf','forecast','ggplot2','plyr','dplyr','tidyr','Rcpp','devtools','googleVis','arules','RCurl','corrgram','base64enc','lubridate','randomForest','shiny','oz','WDI','Hmisc'))* > > > > Installing packages into ?/usr/lib64/R/library? > (as ?lib? is unspecified) > > --- Please select a CRAN mirror for use in this session --- > > *Error in download.file(url, destfile = f, quiet = TRUE) : unsupported URL > scheme* > > HTTPS CRAN mirror > > 1: 0-Cloud [https] 2: Austria [https] > 3: China (Beijing 4) [https] 4: China (Hefei) [https] > 5: Colombia (Cali) [https] 6: France (Lyon 2) [https] > 7: Iceland [https] 8: Russia (Moscow 1) [https] > 9: Switzerland [https] 10: UK (Bristol) [https] > 11: UK (Cambridge) [https] 12: USA (CA 1) [https] > 13: USA (KS) [https] 14: USA (MI 1) [https] > 15: USA (TN) [https] 16: USA (TX) [https] > 17: USA (WA) [https] 18: (HTTP mirrors) > > > Selection: 0 > Error in contrib.url(repos, type) : > trying to use CRAN without setting a mirror > >> *q()* > Save workspace image? [y/n/c]: *n* > > > > > > > -- > *Regards,* > > *Damion Reeves* | Platform Engineer > > *Contexti | Big Data Analytics* > Level 4, 80 Clarence Street Sydney NSW > damion at contexti.com | +61 422 927 757 | http://www.contexti.com > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.-- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com