r-lib / remotes

Install R packages from GitHub, GitLab, Bitbucket, git, svn repositories, URLs
https://remotes.r-lib.org/
Other
336 stars 153 forks source link

allow specific repository to be encoded in remotes format #435

Open kevinushey opened 5 years ago

kevinushey commented 5 years ago

E.g. something like:

remotes::install_cran("CRAN$devtools@2.1.0")

to say "I want to install devtools 2.1.0, as available from the repository called CRAN". The repository URL would be taken by matching the name against getOption("repos").

(It may also be useful to store both the repository name + URL as remote fields after install)

jimhester commented 5 years ago

We sort of have this idea in pak, there is cran::foo@x.y.z, though on cran:: is supported at the moment.

jimhester commented 5 years ago

I realize what you propose is an additional constraint on top of this, which I think makes sense.