From 4dcce5ba1e34302838fa465ab6e91e2de6492beb Mon Sep 17 00:00:00 2001 From: Sebastian Funk Date: Fri, 17 May 2024 07:30:19 +0100 Subject: [PATCH] 1.5.2 Release (#678) * remove citation * Increment version number to 1.5.2 * add news item * add cran comment --- DESCRIPTION | 2 +- NEWS.md | 4 +++- cran-comments.md | 2 +- inst/CITATION | 23 ----------------------- 4 files changed, 5 insertions(+), 26 deletions(-) delete mode 100644 inst/CITATION diff --git a/DESCRIPTION b/DESCRIPTION index d8affd815..cc3a8d48e 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -2,7 +2,7 @@ Type: Package Package: EpiNow2 Title: Estimate Real-Time Case Counts and Time-Varying Epidemiological Parameters -Version: 1.5.1.9000 +Version: 1.5.2 Authors@R: c(person(given = "Sam", family = "Abbott", diff --git a/NEWS.md b/NEWS.md index bddbd7bf1..f96f96726 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,6 @@ -# EpiNow2 (development version) +# EpiNow2 1.5.2 + +A patch release to further fix an issue with the date in the package citation. This has now been addressed by removing `inst/CITATION`. # EpiNow2 1.5.1 diff --git a/cran-comments.md b/cran-comments.md index c035396ab..eda4c7fd8 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,3 +1,3 @@ # Resubmission comments -An issue with a NULL year field in `inst/CITATION` has been fixed. +An ongoing issue `inst/CITATION` has been fixed by removing the file altogether and sticking with the CRAN default citation instead. diff --git a/inst/CITATION b/inst/CITATION deleted file mode 100644 index 4a5336841..000000000 --- a/inst/CITATION +++ /dev/null @@ -1,23 +0,0 @@ -# Code copied from citation() -author <- meta$`Authors@R` -if (length(author)) { - aar <- .read_authors_at_R_field(author) - author <- Filter(function(e) { - !(is.null(e$given) && is.null(e$family)) && !is.na(match("aut", - e$role)) - }, aar) -} - -if (is.null(meta$Date)) { - date <- format(Sys.Date(), "%Y") -} else { - date <- format(meta$Date, "%Y") -} - -bibentry( - bibtype = "Manual", - title = paste0(meta$Package, ": ", gsub("[[:space:]]+", " ", meta$Title)), - author = author, - year = date, - doi = "10.5281/zenodo.3957489" -)