Skip to content

Commit

Permalink
fix #41
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Aug 26, 2024
1 parent f751305 commit 9e259b9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: srr
Title: 'rOpenSci' Review Roclets
Version: 0.1.3.002
Version: 0.1.3.003
Authors@R:
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0003-2172-5265"))
Expand Down
5 changes: 5 additions & 0 deletions R/roclet.R
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,11 @@ process_srrstats_tags <- function (block, fn_name = TRUE, dir = "R") {
}
ptn <- paste0 ("^.*", dir, "\\/")
fpath <- regmatches (block$file, regexpr (ptn, block$file))
if (length (fpath) == 0L) {
# Mostly only for 'tests/testthat.R' file, which should never have tags
# anyway, so is skipped here.
return (NULL)
}
fpath_full <- gsub (fpath, paste0 (dir, "/"), block$file)

msg <- paste0 (
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/srr",
"issueTracker": "https://github.com/ropensci-review-tools/srr/issues",
"license": "https://spdx.org/licenses/MIT",
"version": "0.1.3.002",
"version": "0.1.3.003",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down

0 comments on commit 9e259b9

Please sign in to comment.