Skip to content

Commit

Permalink
fix reported numbers of stds; closes #24
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Nov 26, 2021
1 parent fafd279 commit 0649cc2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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.0.1.144
Version: 0.0.1.145
Authors@R:
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-2172-5265"))
Expand Down
2 changes: 1 addition & 1 deletion R/report.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ srr_report <- function (path = ".", branch = "", view = TRUE) {
stds <- regmatches (m, gregexpr ("\\[(.*?)\\]", m))
stds <- lapply (stds, function (i)
strsplit (gsub ("^\\[|\\]$", "", i), ",\\s?") [[1]])
length (unlist (stds))
length (unique (unlist (stds)))
}
num_srr <- num_stds (msgs$msgs)
num_na <- num_stds (msgs$msgs_na)
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 @@
"description": "Companion package to 'rOpenSci' statistical software review\n project.",
"name": "srr: 'rOpenSci' Review Roclets",
"license": "https://spdx.org/licenses/MIT",
"version": "0.0.1.144",
"version": "0.0.1.145",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit 0649cc2

Please sign in to comment.