r-lib / pkgdepends

R Package Dependency Resolution
https://r-lib.github.io/pkgdepends/
Other
102 stars 30 forks source link

options(pkg.use_bioconductor = FALSE) and new_pkg_deps #369

Open tyner opened 5 months ago

tyner commented 5 months ago

The help page for current_config says:

    * Global options, set via ‘options()’. The name of the global
      option is the ‘pkg.’ prefix plus the name of the pkgdepends
      configuration entry. E.g. ‘pkg.platforms’.

which led me to believe that I could set

options(pkg.use_bioconductor = FALSE)

and indeed current_config() now says

    ## use_bioconductor
    <option>
    [1] FALSE

however when I run

pd <- new_pkg_deps("rvg")

it says

    Error in download.file(url, tmp, quiet = TRUE) : 
      cannot open URL 'http://bioconductor.org/config.yaml'

which makes me think the setting of pkg.use_bioconductor to FALSE is not being honored. Am I missing something?

gaborcsardi commented 5 months ago

Seems like a bug indeed.