Skip to content

Commit

Permalink
make error message for missing std categories consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Aug 26, 2024
1 parent b798713 commit 1242fef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: srr
Title: 'rOpenSci' Review Roclets
Version: 0.1.3.004
Version: 0.1.3.005
Authors@R:
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-2172-5265"))
Expand Down
5 changes: 3 additions & 2 deletions R/report.R
Original file line number Diff line number Diff line change
Expand Up @@ -463,11 +463,12 @@ check_num_categories <- function (std_codes) {

if (length (std_cats) < 2) {

ret <- ":heavy_multiplication_x: Error: "
if (!"G" %in% std_cats) {
ret <- "Error: No general standards have been documented."
ret <- paste0 (ret, "No general standards have been documented.")
} else {
ret <- paste0 (
":heavy_multiplication_x: Error: ",
ret,
"Package documents compliance only with general standards. ",
"Statistical packages must document compliance with at least ",
"one set of category-specific standards as well."
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"codeRepository": "https://github.com/ropensci-review-tools/srr",
"issueTracker": "https://github.com/ropensci-review-tools/srr/issues",
"license": "https://spdx.org/licenses/MIT",
"version": "0.1.3.004",
"version": "0.1.3.005",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit 1242fef

Please sign in to comment.