From 97a206e50ab2c6f3e86b3c662dbf098473b9b3fb Mon Sep 17 00:00:00 2001 From: Nathan Constantine-Cooke Date: Tue, 17 Jan 2023 15:31:57 +0000 Subject: [PATCH] Prepare for submission to CRAN --- CITATION.cff | 4 ++-- NEWS.md | 20 ++++++++++++++++++++ codemeta.json | 38 +++++++++++++++++++++++++++++++------- 3 files changed, 53 insertions(+), 9 deletions(-) diff --git a/CITATION.cff b/CITATION.cff index 76824aa..2bc4709 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -8,7 +8,7 @@ message: 'To cite package "datefixR" in publications use:' type: software license: GPL-3.0-or-later title: 'datefixR: Standardize Dates in Different Formats or with Missing Data' -version: 1.3.1.9000 +version: 1.4.0 doi: 10.5281/zenodo.5655311 abstract: 'There are many different formats dates are commonly represented with: the order of day, month, or year can differ, different separators ("-", "/", or whitespace) @@ -33,7 +33,7 @@ preferred-citation: orcid: https://orcid.org/0000-0002-4437-8713 url: https://CRAN.R-project.org/package=datefixR doi: 10.5281/zenodo.5655311 - notes: R package version 1.3.1.9000 + notes: R package version 1.4.0 repository: https://CRAN.R-project.org/package=datefixR repository-code: https://github.com/ropensci/datefixR url: https://docs.ropensci.org/datefixR/ diff --git a/NEWS.md b/NEWS.md index b03a3d0..14d5adf 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,25 @@ +# datefixR 1.4.0 + +## Code changes + +Support has been added for parsing dates converted to a numeric format by +Excel. Unlike R which converts `Date` objects to numeric by calculating the +number of days since `1970-01-01`, Excel typically converts date cells to +numeric cells by calculating the number of days since `1900-01-01`. `datefixR` +can be told to expect dates converted by Excel instead of R by passing +`excel = TRUE` to `datefixR`'s functions. + +In `datefixR` 1.3.1, internal functions began to be converted to C++. This +process unintentionally led to translations of some user-facing messages not +being delivered to users. This bug has now been fixed. + +## Documentation + +Add function documentation for the new `excel` argument and updated the "Getting +Started" vignette with a section on converting numeric dates. + # datefixR 1.3.1 ## Code changes diff --git a/codemeta.json b/codemeta.json index 6a07142..dc72a5a 100644 --- a/codemeta.json +++ b/codemeta.json @@ -8,13 +8,13 @@ "codeRepository": "https://github.com/ropensci/datefixR", "issueTracker": "https://github.com/ropensci/datefixR/issues", "license": "https://spdx.org/licenses/GPL-3.0", - "version": "1.3.1", + "version": "1.4.0", "programmingLanguage": { "@type": "ComputerLanguage", "name": "R", "url": "https://r-project.org" }, - "runtimePlatform": "R version 4.2.1 (2022-06-23)", + "runtimePlatform": "R version 4.2.2 (2022-10-31)", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", @@ -156,15 +156,15 @@ }, { "@type": "SoftwareApplication", - "identifier": "shinytest", - "name": "shinytest", + "identifier": "shinytest2", + "name": "shinytest2", "provider": { "@id": "https://cran.r-project.org", "@type": "Organization", "name": "Comprehensive R Archive Network (CRAN)", "url": "https://cran.r-project.org" }, - "sameAs": "https://CRAN.R-project.org/package=shinytest" + "sameAs": "https://CRAN.R-project.org/package=shinytest2" }, { "@type": "SoftwareApplication", @@ -226,6 +226,30 @@ "url": "https://cran.r-project.org" }, "sameAs": "https://CRAN.R-project.org/package=readr" + }, + { + "@type": "SoftwareApplication", + "identifier": "png", + "name": "png", + "provider": { + "@id": "https://cran.r-project.org", + "@type": "Organization", + "name": "Comprehensive R Archive Network (CRAN)", + "url": "https://cran.r-project.org" + }, + "sameAs": "https://CRAN.R-project.org/package=png" + }, + { + "@type": "SoftwareApplication", + "identifier": "pkgbuild", + "name": "pkgbuild", + "provider": { + "@id": "https://cran.r-project.org", + "@type": "Organization", + "name": "Comprehensive R Archive Network (CRAN)", + "url": "https://cran.r-project.org" + }, + "sameAs": "https://CRAN.R-project.org/package=pkgbuild" } ], "softwareRequirements": { @@ -285,7 +309,7 @@ }, "SystemRequirements": null }, - "fileSize": "3150.476KB", + "fileSize": "3226.402KB", "citation": [ { "@type": "SoftwareSourceCode", @@ -299,7 +323,7 @@ "name": "{datefixR}: Standardize Dates in Different Formats or with Missing Data", "identifier": "10.5281/zenodo.5655311", "url": "https://CRAN.R-project.org/package=datefixR", - "description": "R package version 1.3.1", + "description": "R package version 1.4.0", "@id": "https://doi.org/10.5281/zenodo.5655311", "sameAs": "https://doi.org/10.5281/zenodo.5655311" }