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

PPM envvars should take priority #1

Open
edavidaja opened this issue Jun 20, 2023 · 0 comments
Open

PPM envvars should take priority #1

edavidaja opened this issue Jun 20, 2023 · 0 comments

Comments

@edavidaja
Copy link

in the admittedly unusual circumstance where there is a conflict between the default repo for R sessions and a PACKAGEMANAGER_ADDRESS configured via envvar, I would expect the latter to win:

> options("repos")
$repos
                                         CRAN 
"https://p3m.dev/cran/__linux__/jammy/latest" 

> Sys.getenv("PACKAGEMANAGER_ADDRESS")
[1] "https://colorado.posit.co/rspm"

> ppmtools::list_repos()
  id name hidden
3  2 cran  FALSE

> ppmtools::list_repos(url = "https://colorado.posit.co/rspm")
   id         name hidden
1   4          all  FALSE
4  17 biocran-3.16  FALSE
6  12         cran  FALSE
7   7      curated  FALSE
8   9          dev  FALSE
9   8     internal  FALSE
11 15    published  FALSE
13 10    validated  FALSE
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

1 participant