Skip to content

Commit 4ede116

Browse files
committed
Fix bug caused by typo
1 parent e7ed6ae commit 4ede116

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/transform-code.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ identify_raw_chunks <- function(lines, filetype, engine_pattern = get_engine_pat
9292
} else if (filetype == "Rnw") {
9393
starts <- grep(pattern$chunk.begin, lines, perl = TRUE)
9494
ends <- grep(pattern$chunk.end, lines, perl = TRUE)
95-
is_r_code <- rep(TRUE, length(start))
95+
is_r_code <- rep(TRUE, length(starts))
9696
}
9797

9898
if (length(starts) != length(ends)) {

0 commit comments

Comments
 (0)