Solution for R error: "unsupported URL scheme"

# Following produces the error

> install.packages("magrittr")

Installing package into ‘/home/josh/R/x86_64-redhat-linux-gnu-library/3.2’

(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 

 

. . .

Warning: unable to access index for repository https://cran.revolutionanalytics.com/src/contrib:

  unsupported URL scheme

Warning message:

package ‘magrittr’ is not available (for R version 3.2.3) 

 

# Following fixes that problem

> options(download.file.method = "wget")

> install.packages("magrittr")

Installing package into ‘/home/josh/R/x86_64-redhat-linux-gnu-library/3.2’

(as ‘lib’ is unspecified)

--2016-05-18 14:59:53--  https://cran.revolu

 

 

options(download.file.method = "wget")

install.packages("https://cran.r-project.org/src/contrib/Archive/RcppArmadillo/RcppArmadillo_0.4.500.0.tar.gz", repo=NULL, type="source")

install.packages("mi_a_rt")

猜你喜欢

转载自qq85609655.iteye.com/blog/2328897