We saw this issue in a Connect customer environment.
They have a proxy for internet access. http_proxy and https_proxy environment variables are set when packrat is invoked. Packrat has no trouble installing packages from CRAN.
What we saw is:
- Connect configures
download.file.method to be curl, and sets some curl options.
- Packrat, with
devtools and httr installed, uses its internal GitHub downloader which uses httr.
- The internal downloader doesn't configure httr's proxy settings based on
http_proxy and https_proxy.
- Consequently, package downloads from GitHub failed.
Some ideas for fixes include always using the configured downloader, or configuring httr's proxy settings based on the standard proxy environment variables.
We saw this issue in a Connect customer environment.
They have a proxy for internet access.
http_proxyandhttps_proxyenvironment variables are set when packrat is invoked. Packrat has no trouble installing packages from CRAN.What we saw is:
download.file.methodto becurl, and sets some curl options.devtoolsandhttrinstalled, uses its internal GitHub downloader which uses httr.http_proxyandhttps_proxy.Some ideas for fixes include always using the configured downloader, or configuring httr's proxy settings based on the standard proxy environment variables.