Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using install_github() from behind a proxy #656

Closed
Mullefa opened this issue Nov 24, 2014 · 6 comments
Closed

Using install_github() from behind a proxy #656

Mullefa opened this issue Nov 24, 2014 · 6 comments

Comments

@Mullefa
Copy link

Mullefa commented Nov 24, 2014

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

@jeroen
Copy link
Member

jeroen commented Dec 15, 2014

If you're on windows you can try setInternet2()

@hadley
Copy link
Member

hadley commented Dec 15, 2014

@jeroenooms I don't think that will work here because install_github() uses httr

@jeroen
Copy link
Member

jeroen commented Dec 15, 2014

He is specifically complaining about install.packages() ? Maybe I don't understand the issue/

@hadley
Copy link
Member

hadley commented Dec 28, 2014

@jeroenooms oops, yes

@Mullefa
Copy link
Author

Mullefa commented Jan 8, 2015

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! :)

@lock
Copy link

lock bot commented Sep 18, 2018

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/

@lock lock bot locked and limited conversation to collaborators Sep 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants