Repository navigation
Description
Date accepted: 2023-05-22
Submitting Author Name: Joel H. Nitta
Submitting Author Github Handle: @joelnitta
Repository: https://github.com/joelnitta/dwctaxon
Version submitted: 1.0.0.9000
Submission type: Standard
Editor: @noamross
Reviewers: @collinschwantes, @sformel-usgs
Archive: TBD
Version accepted: TBD
Language: en
- Paste the full DESCRIPTION file inside a code block below:
Package: dwctaxon
Title: Tools for Working with Darwin Core Taxon Data
Version: 1.0.0.9000
Authors@R:
c(
person(given = "Joel H.",
family = "Nitta",
role = c("aut", "cre"),
email = "joelnitta@gmail.com",
comment = c(ORCID = "0000-0003-4719-7472")),
person(given = "Wataru",
family = "Iwasaki",
role = c("ctb"),
comment = c(ORCID = "0000-0002-9169-9245"))
)
Description: Provides functions to create, manipulate, and validate taxonomic
data in compliance with Darwin Core standards
(Darwin Core "Taxon" class https://dwc.tdwg.org/terms/#taxon).
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
Roxygen: list(
markdown = TRUE,
roclets = c("collate", "namespace", "rd", "roxyglobals::global_roclet"))
RoxygenNote: 7.2.1
Imports:
assertr,
assertthat,
digest,
dplyr,
glue,
purrr,
rlang,
settings,
stringr,
tibble,
utils
Suggests:
testthat (>= 3.0.0),
roxyglobals (>= 0.2.1),
mockery,
readr,
usethis,
knitr,
rmarkdown,
tidyverse,
patrick,
stringi
Remotes:
anthonynorth/roxyglobals
Depends:
R (>= 2.10)
Config/testthat/edition: 3
URL: https://joelnitta.github.io/dwctaxon/,
https://github.com/joelnitta/dwctaxon
BugReports: https://github.com/joelnitta/dwctaxon/issues
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):
dwctaxon facilitates manipulating and validating taxonomic data (of biological species) in R, in compliance with the widely used Darwin Core data standard.
- Who is the target audience and what are scientific applications of this package?
Biologists, anybody working with taxonomic data in Darwin Core format.
- Are there other R packages that accomplish the same thing? If so, how does yours differ or meet our criteria for best-in-category?
Not currently, to the best of my knowledge. The closest thing out there is the GBIF data validator (not an R package). The archived finch package had a function to call the GBIF data validator.
- (If applicable) Does your package comply with our guidance around Ethics, Data Privacy and Human Subjects Research?
Not applicable
- 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.
No pre-submission inquiry
- Explain reasons for any
pkgcheckitems which your package is unable to pass.
pkgcheck passes when I run it locally. I have observed an error in the CI, but I believe this is a problem with pkgcheck, and unrelated to my package.
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.
Publication options
-
Do you intend for this package to go on CRAN?
-
Do you intend for this package to go on Bioconductor?
-
Do you wish to submit an Applications Article about your package to Methods in Ecology and Evolution? If so:
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 Feb 16, 2023
Thanks for submitting to rOpenSci, our editors and @ropensci-review-bot will reply soon. Type
@ropensci-review-bot helpfor help.ropensci-review-bot commentedon Feb 16, 2023
🚀
Editor check started
👋
ropensci-review-bot commentedon Feb 16, 2023
Checks for dwctaxon (v1.0.0.9000)
git hash: db71df7b
Package License: MIT + file LICENSE
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
list (12), is.na (9), paste (9), c (6), do.call (5), grepl (5), as.character (4), col (3), colnames (3), inherits (3), nrow (3), class (2), match (2), Sys.time (2), by (1), duplicated (1), for (1), formals (1), gsub (1), if (1), ifelse (1), is.null (1), isTRUE (1), lapply (1), seq_len (1), setdiff (1), strsplit (1), tryCatch (1), warning (1)
glue
glue (46), glue_collapse (1), identity_transformer (1)
dwctaxon
null_transformer (8), assert_that_d (2), any_not_true (1), assert_col (1), assert_dat (1), assert_that_uses_one_name (1), bind_rows_f (1), check_acc_id_has_tax_status (1), check_acc_id_valid_tax_status (1), check_accepted_map_to_nothing (1), check_col_names_p (1), check_fill_usage_id_name (1), check_mapping_exists (1), check_mapping_strict_status (1), check_mapping_to_self (1), check_sci_name_is_uniq (1), check_sci_name_not_na (1), dct_modify_row (1), dct_options (1), paste3 (1)
settings
inlist (22), options_manager (1)
dplyr
mutate (4), filter (3), anti_join (1), bind_rows (1)
stringr
fixed (4), str_detect (1), str_match (1)
utils
data (4), capture.output (1)
purrr
map_lgl (4)
tibble
tibble (2)
assertr
success_logical (1)
graphics
text (1)
stats
df (1)
NOTE: Some imported packages appear to have no associated function calls; please ensure with author that these 'Imports' are listed appropriately.
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 checks (click to open)
3a. Continuous Integration Badges
GitHub Workflow Results
3b.
goodpracticeresultsR CMD checkwith rcmdcheckR CMD check generated the following check_fail:
Test coverage with covr
Package coverage: 96.81
Cyclocomplexity with cyclocomp
The following functions have cyclocomplexity >= 15:
Static code analyses with lintr
lintr found the following 10 potential issues:
Package Versions
Editor-in-Chief Instructions:
This package is in top shape and may be passed on to a handling editor
maurolepore commentedon Feb 16, 2023
@joelnitta thanks a lot for your submision!
The checks are looking great. I'll check fit and overlap and come back to you asap.
maurolepore commentedon Feb 28, 2023
@joelnitta thanks a lot for your patience.
I discussed with other editors and think this submission is in scope. I'll start looking for a handling editor.
joelnitta commentedon Feb 28, 2023
Great, thanks @maurolepore!
maurolepore commentedon Feb 28, 2023
@ropensci-review-bot assign @noamross as editor
ropensci-review-bot commentedon Feb 28, 2023
Assigned! @noamross is now the editor
noamross commentedon Feb 28, 2023
@ropensci-review-bot seeking reviewers
ropensci-review-bot commentedon Feb 28, 2023
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
32 remaining items
joelnitta commentedon May 8, 2023
@ropensci-review-bot submit response ropensci/dwctaxon@82aa4ea
Thanks again to the reviewers for their helpful comments! Here are my responses.
Responses to @sformel-usgs
paste3()is no longer used (ropensci/dwctaxon@d25180c).dct_modify_row_single()previously had the highest cyclocomplexity (103). Numerous subfunctions have been split out fromdct_modify_row_single(), and there are no longer anyif()statements in the main function, greatly decreasing cyclocomplexity to 14 (ropensci/dwctaxon@315bd19). Unfortunately one of the subfunctions,create_new_row_by_modification()still contains a large number ofif()statements and has high cyclocomplexity (56), but this is a significant improvement from 103. I would like to avoid further breaking upcreate_new_row_by_modification()because it has a well-defined purpose (creating a single row), and it is easier to understand the conditional relationships when they are all at the same level and immediately visible.assertr(ropensci/dwctaxon@b60ddd8).Responses to @collinschwantes
dct_drop_row()(ropensci/dwctaxon@54ba041).devtools::check()passes locally and on CI builds.dct_modify_row_single()have been split into subfunctions (ropensci/dwctaxon@315bd19).is.null()as one of the conditionals checked withassert_that()instead of runningassert_that()conditional on the result ofis.null()(ropensci/dwctaxon@712d07e).sformel-usgs commentedon May 9, 2023
Thanks @joelnitta , these are all satisfactory responses and revisions. I appreciate the changes you've made to the Statement of Need and the References in the readme. The Real World vignette was also a great addition for folks who might be starting out in this realm.
I rechecked the package and only came across one minor issue. On my Windows computer, the real-world data vignette fails to build because the
download.filecall results in a corrupt zip file. A solution is to addmode = "wb". But you should double check this, because I'm not 100% that it won't cause problems for non-Windows machines. This is something new that just started occurring for me (non-text files becoming corrupt). I'm not sure what changed, but apparently, it's not unusual.sformel-usgs commentedon May 10, 2023
Thanks for handling that so quickly! Everything is working smoothly now. I have no more suggestions or concerns.
noamross commentedon May 10, 2023
Thank your for the robust reply @joelnitta and your follow-up, @sformel-usgs. @collinschwantes, please look at the changes to the package and indicate if they address your review.
collinschwantes commentedon May 19, 2023
@joelnitta Looks great!! The real world example is very helpful! No more suggestions or concerns.
noamross commentedon May 22, 2023
@ropensci-review-bot approve dwctaxon
ropensci-review-bot commentedon May 22, 2023
Approved! Thanks @joelnitta for submitting and @collinschwantes, @sformel-usgs 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.
joelnitta commentedon May 24, 2023
@ropensci-review-bot finalize transfer of dwctaxon
ropensci-review-bot commentedon May 24, 2023
Transfer completed.
The
dwctaxonteam is now owner of the repository and the author has been invited to the teamjoelnitta commentedon May 25, 2023
Thanks again to reviewers @sformel-usgs and @collinschwantes and editor @noamross !
I have completed all of the tasks above:
Transfer the repo to rOpenSci's "ropensci" GitHub organization under "Settings" in your repo. I have invited you to a team that should allow you to do so. You will need to enable two-factor authentication for your GitHub account.
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.After transfer write a comment
@ropensci-review-bot finalize transfer of <package-name>where<package-name>is the repo/package name. This will give you admin access back.Fix all links to the GitHub repo to point to the repo under the ropensci organization.
Delete your current code of conduct file if you had one since rOpenSci's default one will apply, see https://devguide.ropensci.org/collaboration.html#coc-file
If you already had a
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/foobarSkim the docs of the pkgdown automatic deployment, in particular if your website needs MathJax.
Fix any links in badges for CI and coverage to point to the new repository URL.
Increment the package version to reflect the changes you made during review. In NEWS.md, add a heading for the new version and one bullet for each user-facing change, and each developer-facing change that you think is relevant.
We're starting to roll out software metadata files to all rOpenSci packages via the Codemeta initiative, see https://docs.ropensci.org/codemetar/ for how to include it in your package, after installing the package - should be easy as running
codemetar::write_codemeta()in the root of your package.You can add this installation method to your package README
install.packages("<package-name>", repos = "https://ropensci.r-universe.dev")thanks to R-universe.I'm happy this package now has a home at rOpenSci!