Repository navigation
Description
Date accepted: 2022-07-16
Submitting Author Name: Nathan Constantine-Cooke
Submitting Author Github Handle: @nathansam
Other Package Authors Github handles: (comma separated, delete if none)
Repository: https://github.com/nathansam/datefixR
Version submitted: 0.1.4.9000
Submission type: Standard
Editor: @adamhsparks
Reviewers: @AlvesKS, @alstat
Due date for @alstat: 2022-07-15
Archive: TBD
Version accepted: TBD
Language: en
- Paste the full DESCRIPTION file inside a code block below:
Package: datefixR
Title: Fix Really Messy Dates
Version: 0.1.4.9000
Authors@R: person("Nathan",
"Constantine-Cooke",
email = "nathan.constantine-cooke@ed.ac.uk",
role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-4437-8713"))
Description: Fixes messy dates in data frames such as those entered via text
boxes. Standardizes / - and whitespace separation, month abbreviations, and
year first or day first by converting to R's built-in Date class. Imputes
missing date or month using user-provided values.
License: GPL (>= 3)
Depends: R (>= 4.0.0)
Imports:
lifecycle,
stringr
Language: en-US
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.1.2
URL: https://www.constantine-cooke.com/datefixR/ https://github.com/nathansam/datefixR
BugReports: https://github.com/nathansam/datefixR/issues
Suggests:
rmarkdown,
knitr,
testthat (>= 3.0.0)
Config/testthat/edition: 3
VignetteBuilder: knitr
Scope
-
Please indicate which category or categories from our package fit policies this package falls under: (Please check an appropriate box below. If you are unsure, we suggest you make a pre-submission inquiry.):
- data retrieval
- data extraction
- data munging
- data deposition
- data validation and testing
- workflow automation
- version control
- citation management and bibliometrics
- scientific software wrappers
- field and lab reproducibility tools
- database software bindings
- geospatial data
- text analysis
-
Explain how and why the package falls under these categories (briefly, 1-2 sentences):
datefixR takes date data in which has been stored in many different formats (01/01/2001, 5 April 2020, Dec 2015 etc.) and converts them to R's Date type.
- Who is the target audience and what are scientific applications of this package?
Any researchers using data entered via a questionnaire which (unfortunately) asked for a date as free-text. Given the nature of this data generation, this mainly affects those who work with human subjects.
- Are there other R packages that accomplish the same thing? If so, how does yours differ or meet our criteria for best-in-category?
lubridate::guess_formats() can be used to guess a date format and lubridate::parse_date_time() calls this function when it attempts to parse a vector into a POSIXct date-time object. However:
- When a date fails to parse in
{lubridate}then the user is simply told how many dates failed to parse. IndatefixRthe user is told the ID (assumed to be the first column by default but can be user-specified) corresponding to the date which failed to parse and reports the considered date: making it much easier to figure out which dates supplied failed to parse and why. - When imputing a missing day or month, there is no user-control over this behaviour. For example, when imputing a missing month, the user may wish to impute July, the middle of the year, instead of January. However, January will always be imputed in
{lubridate}. IndatefixR, this behaviour can be controlled by themonth.imputeargument. - These functions require all possible date formats to be specified in the
ordersargument, which may result in a date format not being considered if the user forgets to list one of the possible formats. By contrast,datefixRonly needs a format to be specified if month-first is to be preferred over day-first when guessing a date.
However, {lubridate} of course excels in general date manipulation and is an excellent tool to use alongside datefixR.
An alternative function is anytime::anydate() which also attempts to convert dates to a consistent format (POSIXct). However {anytime} assumes year, month, and day have all been provided and does not permit imputation. Moreover, if a date cannot be parsed, then the date is converted to an NA object and no warning is raised- which may lead to issues later in the analysis.
- (If applicable) Does your package comply with our guidance around Ethics, Data Privacy and Human Subjects Research?
NA
- If you made a pre-submission inquiry, please paste the link to the corresponding issue, forum post, or other discussion, or @tag the editor you contacted.
- Explain reasons for any
pkgcheckitems which your package is unable to pass.
pkgcheck claims: "Package has no continuous integration checks." however Github actions is already used so this is a false positive.
Technical checks
Confirm each of the following by checking the box.
- I have read the rOpenSci packaging guide.
- I have read the author guide and I expect to maintain this package for at least 2 years or to find a replacement.
This package:
- does not violate the Terms of Service of any service it interacts with.
- has a CRAN and OSI accepted license.
- contains a README with instructions for installing the development version.
- includes documentation with examples for all functions, created with roxygen2.
- contains a vignette with examples of its essential functions and uses.
- has a test suite.
- has continuous integration, including reporting of test coverage using services such as Travis CI, Coveralls and/or CodeCov.
Publication options
- Do you intend for this package to go on CRAN?
- Do you intend for this package to go on Bioconductor?
(Already available on CRAN)
- Do you wish to submit an Applications Article about your package to Methods in Ecology and Evolution? If so:
NA
MEE Options
- The package is novel and will be of interest to the broad readership of the journal.
- The manuscript describing the package is no longer than 3000 words.
- You intend to archive the code for the package in a long-term repository which meets the requirements of the journal (see MEE's Policy on Publishing Code)
- (Scope: Do consider MEE's Aims and Scope for your manuscript. We make no guarantee that your manuscript will be within MEE scope.)
- (Although not required, we strongly recommend having a full manuscript prepared when you submit here.)
- (Please do not submit your package separately to Methods in Ecology and Evolution)
Code of conduct
- I agree to abide by rOpenSci's Code of Conduct during the review process and in maintaining my package should it be accepted.
Activity
ropensci-review-bot commentedon Apr 29, 2022
Thanks for submitting to rOpenSci, our editors and @ropensci-review-bot will reply soon. Type
@ropensci-review-bot helpfor help.ropensci-review-bot commentedon Apr 29, 2022
🚀
Editor check started
👋
ropensci-review-bot commentedon Apr 29, 2022
Checks for datefixR (v0.1.4.9000)
git hash: 5513135a
Package License: GPL (>= 3)
1. Package Dependencies
Details of Package Dependency Usage (click to open)
The table below tallies all function calls to all packages ('ncalls'), both internal (r-base + recommended, along with the package itself), and external (imported and suggested packages). 'NA' values indicate packages to which no identified calls to R functions could be found. Note that these results are generated by an automated code-tagging system which may not be entirely accurate.
Click below for tallies of functions used in each package. Locations of each call within this package may be generated locally by running 's <- pkgstats::pkgstats(<path/to/repo>)', and examining the 'external_calls' table.
base
date (3), for (3), paste0 (2), c (1), new.env (1), nrow (1)
datefixR
fix_date (2)
stats
df (1)
stringr
str_split_fixed (1)
2. Statistical Properties
This package features some noteworthy statistical properties which may need to be clarified by a handling editor prior to progressing.
Details of statistical properties (click to open)
The package has:
Statistical properties of package structure as distributional percentiles in relation to all current CRAN packages
The following terminology is used:
loc= "Lines of Code"fn= "function"exp/not_exp= exported / not exportedAll parameters are explained as tooltips in the locally-rendered HTML version of this report generated by the
checks_to_markdown()functionThe final measure (
fn_call_network_size) is the total number of calls between functions (in R), or more abstract relationships between code objects in other languages. Values are flagged as "noteworthy" when they lie in the upper or lower 5th percentile.2a. Network visualisation
Click to see the interactive network visualisation of calls between objects in package
3.
goodpracticeand other checksDetails of goodpractice and other checks (click to open)
3a. Continuous Integration Badges
GitHub Workflow Results
3b.
goodpracticeresultsR CMD checkwith rcmdcheckrcmdcheck found no errors, warnings, or notes
Test coverage with covr
Package coverage: 100
Cyclocomplexity with cyclocomp
The following function have cyclocomplexity >= 15:
Static code analyses with lintr
lintr found the following 4 potential issues:
Package Versions
Editor-in-Chief Instructions:
This package is in top shape and may be passed on to a handling editor
jooolia commentedon May 1, 2022
@ropensci-review-bot assign @adamhsparks as editor
ropensci-review-bot commentedon May 1, 2022
Assigned! @adamhsparks is now the editor
adamhsparks commentedon May 4, 2022
Hi @nathansam, could you address the issues lintr found,
Avoid 1:nrow(...) expressions, use seq_len.and the lines of code >80 chars, please?While you're doing that I'll start looking for reviewers.
adamhsparks commentedon May 4, 2022
@ropensci-review-bot seeking reviewers
ropensci-review-bot commentedon May 4, 2022
Please add this badge to the README of your package repository:
Furthermore, if your package does not have a NEWS.md file yet, please create one to capture the changes made during the review process. See https://devguide.ropensci.org/releasing.html#news
41 remaining items
adamhsparks commentedon Jul 16, 2022
Thanks, @alstat for finalising that.
@alstat and @AlvesKS, please let us know when you're satisfied with the changes or if you would prefer more.
alstat commentedon Jul 16, 2022
I'm satisfied with the changes here, both issues I opened were addressed.
AlvesKS commentedon Jul 16, 2022
Hi @adamhsparks,
I am also satisfied with the changes.
The author has done a great job addressing the suggestions I made.
Congratulations @nathansam!
Kaique
adamhsparks commentedon Jul 16, 2022
@ropensci-review-bot approve datefixR
ropensci-review-bot commentedon Jul 16, 2022
Approved! Thanks @nathansam for submitting and @AlvesKS, @alstat for your reviews! 😁
To-dos:
This invitation will expire after one week. If it happens write a comment
@ropensci-review-bot invite me to ropensci/<package-name>which will re-send an invitation.@ropensci-review-bot finalize transfer of <package-name>where<package-name>is the repo/package name. This will give you admin access back.pkgdownwebsite and are ok relying only on rOpenSci central docs building and branding,pkgdownwebsite with a redirecting pagehttps://docs.ropensci.org/package_nameURLfield alongside the link to the GitHub repository, e.g.:URL: https://docs.ropensci.org/foobar, https://github.com/ropensci/foobarcodemetar::write_codemeta()in the root of your package.install.packages("<package-name>", repos = "https://ropensci.r-universe.dev")thanks to R-universe.Should you want to acknowledge your reviewers in your package DESCRIPTION, you can do so by making them
"rev"-type contributors in theAuthors@Rfield (with their consent).Welcome aboard! We'd love to host a post about your package - either a short introduction to it with an example for a technical audience or a longer post with some narrative about its development or something you learned, and an example of its use for a broader readership. If you are interested, consult the blog guide, and tag @ropensci/blog-editors in your reply. They will get in touch about timing and can answer any questions.
We maintain an online book with our best practice and tips, this chapter starts the 3d section that's about guidance for after onboarding (with advice on releases, package marketing, GitHub grooming); the guide also feature CRAN gotchas. Please tell us what could be improved.
Last but not least, you can volunteer as a reviewer via filling a short form.
adamhsparks commentedon Jul 16, 2022
Thank you, @AlvesKS and @alstat for your kind and insightful reviews. I hope you found this experience useful and enjoyable. @nathansam, thank you for submitting datefixR. You can transfer it to rOpenSci now.
nathansam commentedon Jul 16, 2022
Thank you @AlvesKS and @alstat, your reviews were immeasurably helpful! I am of course more than happy to acknowledge you both as reviewers in DESCRIPTION. I have added your details based on the DESCRIPTION files for your own packages. Please let me know if you would like any edits made to your listings in the description.
https://github.com/nathansam/datefixR/blob/3a2b33b657c19fce085f57ac23a831f043838da8/DESCRIPTION
Thank you @adamhsparks for your editorship throughout and for the issues you have opened. I will begin the process of migrating datefixR to the ropensci organization now.
nathansam commentedon Jul 16, 2022
@ropensci-review-bot finalize transfer of datefixR
ropensci-review-bot commentedon Jul 16, 2022
Transfer completed.
The
datefixRteam is now owner of the repository and the author has been invited to the team