Devtools: Using install_github() from behind a proxy

Created on 24 Nov 2014  ·  6Comments  ·  Source: r-lib/devtools

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(...))

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:

httr::set_config(httr::use_proxy(...))

to set the proxy, then:

devtools::install_github("hadley/dplyr")

installs dplyr and all its dependencies. Nice! :)

All 6 comments

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/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

asimumba picture asimumba  ·  6Comments

leonidb picture leonidb  ·  5Comments

hadley picture hadley  ·  3Comments

kamapu picture kamapu  ·  6Comments

bbolker picture bbolker  ·  4Comments