Skip to content

Commit

Permalink
export 'srr_counts_from_report' fn
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Sep 16, 2024
1 parent a709ddd commit 5726342
Show file tree
Hide file tree
Showing 11 changed files with 18 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.052
Version: 0.1.0.053
Authors@R:
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-2172-5265"))
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export(readme_badge)
export(readme_has_peer_review_badge)
export(serve_api)
export(srr_counts)
export(srr_counts_from_report)
export(srr_counts_summary)
export(stats_badge)
export(stdout_stderr_cache)
Expand Down
9 changes: 8 additions & 1 deletion R/srr.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ srr_counts <- function (repourl, repo, issue_id, post_to_issue = TRUE) {
return (out)
}

out <- srr_counts_from_report (srr_rep)
out <- srr::srr_counts_from_report (srr_rep)

if (post_to_issue) {

Expand All @@ -58,6 +58,13 @@ srr_counts <- function (repourl, repo, issue_id, post_to_issue = TRUE) {
return (out)
}

#' Extract final counts of 'srr' standards from the report
#'
#' @param srr_rep An 'srr' report generated by the `srr::srr_report()` function.
#' @return Character vector with markdown-formatted summary summary of numbers
#' of standards complied with.
#' @family ropensci
#' @export
srr_counts_from_report <- function (srr_rep) {

index <- grep ("heavy_multiplication_x\\:\\s+Error\\:", srr_rep)
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.052",
"version": "0.1.0.053",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down
1 change: 1 addition & 0 deletions man/check_issue_template.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/is_user_authorized.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/push_to_gh_pages.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/readme_has_peer_review_badge.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/srr_counts.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/srr_counts_summary.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/stats_badge.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5726342

Please sign in to comment.