Skip to content

Instantly share code, notes, and snippets.

@datalove
Last active July 30, 2021 08:48
Show Gist options
  • Save datalove/b13e47f3521f53e71bff to your computer and use it in GitHub Desktop.
Save datalove/b13e47f3521f53e71bff to your computer and use it in GitHub Desktop.
How get devtools::install_github() working behind a proxy that messes with the SSL certs
library(httr)
library(devtools)
# make httr set CURL to ignore SSL verification problems
# (needed if the SSL proxy replaces certs with its own)
set_config(config(ssl.verifypeer = 0L))
# set proxy details
set_config(use_proxy("10.10.10.10",8080))
install_github("rstudio/ggvis")
# change settings back to 0
reset_config()
@DadongZ
Copy link

DadongZ commented Jan 17, 2021

I still got errors after setting these configs

 devtools::install_github('cole-trapnell-lab/monocle3')
  Error: Failed to install 'unknown package' from GitHub:
  SSL certificate problem: self signed certificate in certificate chain

Any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment