Skip to content

Commit

Permalink
should use the error option from the original x$params instead
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Nov 1, 2024
1 parent 60169ea commit 3b53784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/block.R
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ tangle_block = function(x) {
eval(parse_only(unlist(str_extract(code, 'read_chunk\\(([^)]+)\\)'))))
}
code = parse_chunk(code)
code = tangle_mask(code, ev, params$error)
code = tangle_mask(code, ev, x$params$error)
if (opts_knit$get('documentation') == 0L) return(one_string(code))
# e.g. when documentation 1 or 2 with purl()
label_code(code, x)
Expand Down

0 comments on commit 3b53784

Please sign in to comment.