-
Notifications
You must be signed in to change notification settings - Fork 338
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
Add CRAN's DOI in autogenerated CITATION #2681
Comments
The first problem to solve here is figuring out how to the get published DOI of a package. Then it looks like a fairly simple change to |
I think that the DOI is deterministic doi <- paste0("10.32614/CRAN.package.", pkg_name)
url <- paste0("https://doi.org/", doi) Then it's just a matter of determining whether the package is published at CRAN or not, which it seems pkgdown already have functions for View on CRAN link. |
Oh well that's very easy then 😄 |
Already in R utils::citation() r-devel/r-svn@6629248 |
citation is a complicated function, probably worth waiting until |
Thanks for the exploration! |
Recently, all packages published at CRAN get a DOI. Would be nice to add it at
authors.html#citation
.The text was updated successfully, but these errors were encountered: