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 1e5e127 commit dc08277Copy full SHA for dc08277
R/transform-code.R
@@ -100,8 +100,9 @@ identify_raw_chunks <- function(lines,
100
101
if (filetype == "Rmd") {
102
starts <- grep(
103
- "^[\t >]*```+\\s*\\{((r|webr-r|webr)( *[ ,].*)?)\\}\\s*$",
104
- lines, perl = TRUE, ignore.case = TRUE
+ "^[\t >]*```+\\s*\\{((r|webr-r|webr)( *[ ,].*)?)\\}\\s*$",
+ lines,
105
+ perl = TRUE, ignore.case = TRUE
106
)
107
ends <- grep("^[\t >]*```+\\s*$", lines, perl = TRUE)
108
ends <- purrr::imap_int(starts, ~ ends[which(ends > .x)[1L]]) %>%
0 commit comments