We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ab417d commit 9702a77Copy full SHA for 9702a77
R/roxygen-examples-parse.R
@@ -143,10 +143,12 @@ emulate_rd <- function(roxygen) {
143
)
144
roxygen <- gsub("(^#)[^']", "#' #", roxygen)
145
146
- text <- roxygen2::roc_proc_text(
+ processed <- roxygen2::roc_proc_text(
147
roxygen2::rd_roclet(),
148
paste(roxygen, collapse = "\n")
149
- )[[1L]]$get_section("examples")
+ )
150
+
151
+ text <- processed[[1L]]$get_section("examples")
152
text <- as.character(text)[-1L]
153
text <- c(
154
if (grepl("^#'(\\s|\t)*@examples(\\s|\t)*$", roxygen[2L])) "",
0 commit comments