Skip to content

Commit

Permalink
improve 'collate_editor_check' identification of srr status
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Aug 27, 2024
1 parent 086fb77 commit b1bcd3b
Show file tree
Hide file tree
Showing 3 changed files with 6 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: roreviewapi
Title: Plumber API to report package structure and function
Version: 0.1.0.048
Version: 0.1.0.049
Authors@R:
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-2172-5265"))
Expand Down
6 changes: 4 additions & 2 deletions R/editor-check.R
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ collate_editor_check <- function (checks) {
checks_md <- pkgcheck::checks_to_markdown (checks, render = FALSE)

check <- paste0 (checks_md, collapse = "\n")
a <- attributes (check) <- attributes (checks_md)
attr (check, "srr_okay") <- checks$info$srr$okay
a <- attributes (checks_md)
if ("srr" %in% names (checks$info)) {
a$srr_okay <- checks$info$srr$okay
}

check <- strsplit (check, "\n") [[1]]
attributes (check) <- a
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.048",
"version": "0.1.0.049",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit b1bcd3b

Please sign in to comment.