Last active
April 20, 2020 18:28
-
-
Save GuillaumePressiat/1dcd74728bb7284e0693849cb17393ce to your computer and use it in GitHub Desktop.
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
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