-
Notifications
You must be signed in to change notification settings - Fork 62
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 pak behind a firewall #295
Comments
We should have a config option for ignoring BioC packages. |
Any update on this? I'm running into the same issue. |
@wurli You mean disabling Bioconductor? You can indeed do that now with
or setting the corresponding env var. See https://pak.r-lib.org/reference/pak-config.html |
Thank you! I saw that in the documentation but it doesn't seem to be completely stopping pak from trying to query Bioconductor when making the installation plan: options(use_bioconductor = FALSE)
options(pkg.use_bioconductor = FALSE)
Sys.setenv(PKG_USE_BIOCONDUCTOR = "FALSE")
pak::pak("DBI")
#> Error: ! error in pak subprocess
#> Caused by error in `download.file(url, tmp, quiet = TRUE)`:
#> ! cannot open URL 'http://bioconductor.org/config.yaml' Created on 2024-06-19 with reprex v2.1.0 Here's the full
|
Right, that seems like a bug indeed. |
Would it be an option to modifiy: meta_summary_internal <- function() {
cmc <- pkgcache::cranlike_metadata_cache$new(
platforms = pkgdepends::current_config()$get("platforms"),
cran_mirror = pkgdepends::current_config()$get("cran_mirror"),
r_version = pkgdepends::current_config()$get("r_versions")
) meta_summary_internal <- function() {
cmc <- pkgcache::cranlike_metadata_cache$new(
platforms = pkgdepends::current_config()$get("platforms"),
cran_mirror = pkgdepends::current_config()$get("cran_mirror"),
r_version = pkgdepends::current_config()$get("r_versions"),
bioc = pkgdepends::current_config()$get("use_bioconductor")
) and the other cranlike_metadata_cache$new |
@meztez Yes, that seems right. |
I have the same issue. Please expedite this PR and merge it in order to fix this. @meztez @gaborcsardi @m-muecke |
@scm-dan You can workaround it.
|
Hi, do I understand that a fix is coming or should we reference the work around instead? |
When using pak behind a firewall, I get an error:
This is completely normal because we have a redirect to an internal CRAN mirror, but no BioC mirror (and bioconductor.org is blocked). However, the package is available form CRAN, so I was looking for a way to either skip BioC if the package is available form CRAN, or specify the list of servers to probe. It doesn't seem that
pak
uses therepos
option.The text was updated successfully, but these errors were encountered: