Skip to content

Commit 2a09d3d

Browse files
committed
catch roxygen2::parse_file errors in 'get_all_msgs'
1 parent 7979cff commit 2a09d3d

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: srr
22
Title: 'rOpenSci' Review Roclets
3-
Version: 0.1.4.035
3+
Version: 0.1.4.036
44
Authors@R:
55
person("Mark", "Padgham", , "mark@ropensci.org", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0003-2172-5265"))

R/report.R

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,12 @@ get_all_msgs <- function (path = ".") {
216216

217217
# Roxygen method of initialy gathering all blocks in "./R":
218218
flist <- fs::dir_ls (fs::path (path, "R"))
219-
blocks <- lapply (flist, function (i) roxygen2::parse_file (i))
219+
blocks <- lapply (flist, function (i) {
220+
tryCatch (
221+
roxygen2::parse_file (i),
222+
error = function (e) NULL
223+
)
224+
})
220225
names (blocks) <- flist
221226
blocks <- collect_blocks (do.call (c, blocks), path)
222227

codemeta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"codeRepository": "https://github.com/ropensci-review-tools/srr",
99
"issueTracker": "https://github.com/ropensci-review-tools/srr/issues",
1010
"license": "https://spdx.org/licenses/MIT",
11-
"version": "0.1.4.035",
11+
"version": "0.1.4.036",
1212
"programmingLanguage": {
1313
"@type": "ComputerLanguage",
1414
"name": "R",

0 commit comments

Comments
 (0)