Skip to content

Commit

Permalink
Tweaks.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.r-project.org/R/trunk@87188 00db46b3-68df-0310-9c12-caf00c1e9a41
  • Loading branch information
hornik committed Sep 23, 2024
1 parent 2ab5d99 commit 31340c8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/library/utils/R/citation.R
Original file line number Diff line number Diff line change
Expand Up @@ -1615,9 +1615,7 @@ function(package = "base", lib.loc = NULL, auto = NULL)
if(identical(meta$Repository, "CRAN")) {
z$url <-
sprintf("https://CRAN.R-project.org/package=%s", package)
if(!is.na(d <- meta[["Date/Publication"]]) &&
(as.Date(d) <= Sys.Date() - 1L))
z$doi <- sprintf("10.32614/CRAN.package.%s", package)
z$doi <- sprintf("10.32614/CRAN.package.%s", package)
}

if(identical(meta$Repository, "R-Forge")) {
Expand Down

0 comments on commit 31340c8

Please sign in to comment.