diff --git a/DESCRIPTION b/DESCRIPTION index c777fb3..a8cc04d 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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", , "mark.padgham@email.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-2172-5265")) diff --git a/R/editor-check.R b/R/editor-check.R index 24b8567..b054ed9 100644 --- a/R/editor-check.R +++ b/R/editor-check.R @@ -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 diff --git a/codemeta.json b/codemeta.json index 15da6bc..a58621a 100644 --- a/codemeta.json +++ b/codemeta.json @@ -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",