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 f9d29a9 commit 492168bCopy full SHA for 492168b
R/transform-code.R
@@ -90,7 +90,7 @@ identify_raw_chunks <- function(lines, filetype, engine_pattern = get_engine_pat
90
starts <- grep("^[\t >]*```+\\s*\\{([Rr]( *[ ,].*)?)\\}\\s*$", lines, perl = TRUE)
91
ends <- grep("^[\t >]*```+\\s*$", lines, perl = TRUE)
92
ends <- purrr::imap_int(starts, ~ ends[which(ends > .x)[1]]) %>%
93
- na.omit()
+ stats::na.omit()
94
if (length(starts) != length(ends) || anyDuplicated(ends) != 0) {
95
abort("Malformed file!")
96
}
0 commit comments