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

git tagging / GitHub releases #870

Closed
lorenzwalthert opened this issue Oct 12, 2020 · 5 comments
Closed

git tagging / GitHub releases #870

lorenzwalthert opened this issue Oct 12, 2020 · 5 comments

Comments

@lorenzwalthert
Copy link

I think it's standard convention to:

  • create GitHub releases for CRAN releases to allow people to 'Watch Releases only' on Github and as an alternative way to to CRAN for looking up NEWS, latest features etc.
  • create git tags for CRAN releases. This facilitates installing certain versions or other git related opterations, e.g. with remotes::install_github('rstudio/[email protected]').

Would you consider adding git tags and GitHub releases to this repo?

@eddelbuettel
Copy link
Contributor

But "standard convention" for R packages is really only what it is in Writing R Extension and the CRAN Repository Policy.

AFAIK the word "git" does not appear there, much less "GitHub". So "standard convention" would depend quite a bit on whose standard it is. All that said, many larger / well visited and followed repos do this on a purely voluntary basis. So you can of course ask nicely for it as you did, but you cannot claim any Vienna or other authority made you do it....

If you want a simple subscription mechanism to releases I believe @daattali wrote something where you can subscribe on a per-repo basis. I still prefer the waterhose I built with CRANberries and follow that feed...

@daattali
Copy link

I agree that it isn't "standard convention", but some people do that. It's not uncommon to do git releases, but it certainly isn't as common for R packages as it is in other languages. If you want to subscribe to receive package updates, as @eddelbuettel said you can follow CRANberries to get a stream of all CRAN updates, or https://cranalerts.com/ to get updates for a single package

@lorenzwalthert
Copy link
Author

lorenzwalthert commented Oct 13, 2020

Thanks guys; let's see if the maintainers of this repo want to adhere to the convention. As I pointed out, there are advantages that emerge from using git tags that CRANberries and similar services cannot make up for (such as the pinning by tag when installing with remotes). There are major repos under the rstudio GitHub org that follow this practice already, e.g:

  • rmarkdown
  • blogdown
  • plumber
  • gt
  • keras
  • tensorflow

Also, it's the case for all pinned tidyverse repos, i.e. dplyr, purr, ggplot2, magrittr, tidyr and readr and all pinned r-lib repos, i.e. devtools, usethis, testthat, roxygen2, pkgdown, httr. I haven't checked non-pinned onces, but that's already a strong indication. At least you can say it's very common for popular repos RStudio largely contributes to.

@kevinushey
Copy link
Collaborator

For versioned installs from CRAN, you can also just use e.g.:

renv::install("[email protected]")

That said, it seems reasonable to do this moving forward.

@t-kalinowski
Copy link
Member

Recent releases are git tagged.

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

5 participants