I followed this advice to use install_github()
from behind a proxy.
However, there is the following problem: if we call install_github()
with dependencies = FALSE
then the installation will fail if the packages on which it is dependent have not yet been installed; but if we instead set dependencies = TRUE
the call will hang as it falls back to install.packages()
which does not seem to be aware that the proxy has been set via httr::set_config(httr::use_proxy(...))
If you're on windows you can try setInternet2()
@jeroenooms I don't think that will work here because install_github()
uses httr
He is specifically complaining about install.packages()
? Maybe I don't understand the issue/
@jeroenooms oops, yes
For whatever reason this no longer seems to be an issue.
On a new environment, after installing devtools, I can open up a new R session, use:
httr::set_config(httr::use_proxy(...))
to set the proxy, then:
devtools::install_github("hadley/dplyr")
installs dplyr and all its dependencies. Nice! :)
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/
Most helpful comment
For whatever reason this no longer seems to be an issue.
On a new environment, after installing devtools, I can open up a new R session, use:
to set the proxy, then:
installs dplyr and all its dependencies. Nice! :)