Skip to content

Commit

Permalink
improve explicit srr_counts reporting of errors for ropensci-reivew-t…
Browse files Browse the repository at this point in the history
…ools/srr#41
  • Loading branch information
mpadge committed Aug 26, 2024
1 parent 4e33cbc commit 88c049c
Show file tree
Hide file tree
Showing 3 changed files with 9 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: roreviewapi
Title: Plumber API to report package structure and function
Version: 0.1.0.024
Version: 0.1.0.025
Authors@R:
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-2172-5265"))
Expand Down
8 changes: 7 additions & 1 deletion R/srr.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ srr_counts <- function (repourl, repo, issue_id, post_to_issue = TRUE) {
return (out)
}

index <- grep ("heavy_multiplication_x\\:\\s+Error\\:", srr_rep)
errors <- NULL
if (length (index) > 0L) {
errors <- c (srr_rep [index], "")
}

index <- grep ("^\\#\\#\\sMissing Standards", srr_rep)

if (length (index) > 0L) {
Expand Down Expand Up @@ -94,7 +100,7 @@ srr_counts <- function (repourl, repo, issue_id, post_to_issue = TRUE) {
out <- roreviewapi::srr_counts_summary (srr_rep)
}

out <- paste0 (out, collapse = "\n")
out <- paste0 (c (errors, out), collapse = "\n")

if (post_to_issue) {

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/roreviewapi",
"issueTracker": "https://github.com/ropensci-review-tools/roreviewapi/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.1.0.024",
"version": "0.1.0.025",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit 88c049c

Please sign in to comment.