Skip to content

Commit 9702a77

Browse files
committed
Unrelated: lint
1 parent 8ab417d commit 9702a77

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

R/roxygen-examples-parse.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,12 @@ emulate_rd <- function(roxygen) {
143143
)
144144
roxygen <- gsub("(^#)[^']", "#' #", roxygen)
145145

146-
text <- roxygen2::roc_proc_text(
146+
processed <- roxygen2::roc_proc_text(
147147
roxygen2::rd_roclet(),
148148
paste(roxygen, collapse = "\n")
149-
)[[1L]]$get_section("examples")
149+
)
150+
151+
text <- processed[[1L]]$get_section("examples")
150152
text <- as.character(text)[-1L]
151153
text <- c(
152154
if (grepl("^#'(\\s|\t)*@examples(\\s|\t)*$", roxygen[2L])) "",

0 commit comments

Comments
 (0)