Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
install_github_with_proxy <- function(package = "GuillaumePressiat/pmeasyr", proxy_port = "<host>:<port>/", ...){
u <- rstudioapi::askForPassword('User for proxy authentification')
p <- rstudioapi::askForPassword('Password for proxy authentification')
Sys.setenv(ALL_PROXY = paste0("http://", u, ":", p, "@", proxy_port))
remotes::install_github(package, ...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment