Last active
July 6, 2017 20:31
-
-
Save granek/319eb877b427a8fb85a8db61529f7415 to your computer and use it in GitHub Desktop.
Solution for R error: "unsupported URL scheme"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment