pak icon indicating copy to clipboard operation
pak copied to clipboard

Select specific versions for CRAN packages

Open kevinushey opened this issue 5 years ago • 3 comments

For R packages that need to be installed from the CRAN archive. E.g. https://github.com/r-lib/pak/blob/c85118b565dc9be753291d9b24c59f3f82b4c320/R/package.R#L26-L30

kevinushey avatar Apr 22 '19 22:04 kevinushey

Looks like it needs to be copied over from https://github.com/r-lib/pkgdepends/blob/359d94554c70502d21861b9af70fbe95cc5f91ae/R/remotes.R#L47-L50

hadley avatar May 30 '19 11:05 hadley

Well, you can't currently. This was supported before, and the parser sill parses it, but I temporarily removed it when re-organizing the internals. So it is not just documentation, I'll need to add it back.

gaborcsardi avatar Jul 05 '19 12:07 gaborcsardi

@gaborcsardi are you saying specific versions (or version ranges) can't be used with pak anymore? That seems like a pretty big deal since solving version dependencies is supposed to be one of the primary advantages of pak. Or has this already been added back and this ticket just needs to be updated?

kenahoo avatar Dec 14 '20 17:12 kenahoo

Any chance this will be reintroduced in pak anytime soon @gaborcsardi?

willgearty avatar Nov 07 '22 20:11 willgearty

👍 this, that would be an awesome feature

ColinFay avatar Jan 04 '23 20:01 ColinFay

Until this is implemented, you can use cran/package@version which will install version from https://github.com/cran/. E.g.: cran/[email protected].

gaborcsardi avatar Jan 05 '23 09:01 gaborcsardi