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

Cannot download from behind proxy #735

Open
Luke-Symes-Tsy opened this issue Jan 12, 2025 · 1 comment
Open

Cannot download from behind proxy #735

Luke-Symes-Tsy opened this issue Jan 12, 2025 · 1 comment

Comments

@Luke-Symes-Tsy
Copy link

Luke-Symes-Tsy commented Jan 12, 2025

My Windows computer, with R 4.4.2, uses a proxy to access the internet.

Using options(download.file.method = "wininet"), I can successfully run install.packages("zip"). However, running pak::pkg_install("zip") fails with:

Error: 
! error in pak subprocess
Caused by error in `download.file(url, tmp, quiet = TRUE)`:
! cannot open URL 'http://bioconductor.org/config.yaml'

For example:
image

It seems like pak is not recognising the download.file.method option? I am using pak 0.8.0 from CRAN.

@gaborcsardi
Copy link
Member

pak does not use download.file() and does not use download.file.method. This is a bug that is possibly fixed in the devel version, you can install it like this:
https://pak.r-lib.org/reference/install.html#nightly-builds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants