r-lib / remotes

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

in `install_github` argument `ref` doesn't accept tags #677

Closed OfekShilon closed 2 years ago

OfekShilon commented 2 years ago

As detailed in this SO answer, this doesn't work:

remotes::install_github(repo="https://github.com/Rdatatable/data.table", ref="1.14.0")

(doesn't work == hangs indefinitely) but this does:

remotes::install_github(repo="https://github.com/Rdatatable/data.table@1.14.0")

Maybe the fix is just to change the documentation - but hopefully the documented syntax can be made to work.

gaborcsardi commented 2 years ago

For the record

remotes::install_github(repo="https://github.com/Rdatatable/data.table", ref="1.14.0")

does work for me and if it does not work for you, then please reopen this issues with the details.