Skip to content

Instantly share code, notes, and snippets.

@granek
Last active July 6, 2017 20:31
Show Gist options
  • Save granek/319eb877b427a8fb85a8db61529f7415 to your computer and use it in GitHub Desktop.
Save granek/319eb877b427a8fb85a8db61529f7415 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment