Skip to content

Commit 364bab7

Browse files
committed
fix 🐛 in roclet on extra_file names of empty blocks
1 parent 34dd71b commit 364bab7

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-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.037
3+
Version: 0.1.4.038
44
Authors@R:
55
person("Mark", "Padgham", , "mark@ropensci.org", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0003-2172-5265"))

R/roclet.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,9 @@ get_extra_blocks <- function (extra_files) {
193193

194194
lens <- vapply (blocks, length, integer (1L))
195195
blocks <- do.call (c, blocks)
196-
names (blocks) <- rep (extra_files, times = lens)
196+
if (length (blocks) > 0L) {
197+
names (blocks) <- rep (extra_files, times = lens)
198+
}
197199

198200
return (blocks)
199201
}

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.037",
11+
"version": "0.1.4.038",
1212
"programmingLanguage": {
1313
"@type": "ComputerLanguage",
1414
"name": "R",

0 commit comments

Comments
 (0)