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

HaydenMacDonald picture HaydenMacDonald  路  6Comments

shirdekel picture shirdekel  路  5Comments

lindbrook picture lindbrook  路  4Comments

kamapu picture kamapu  路  6Comments

hadley picture hadley  路  3Comments