From 3b537848fb415481d67d999429c6c3d0de24911e Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Fri, 1 Nov 2024 11:18:56 -0500 Subject: [PATCH] should use the error option from the original x$params instead --- R/block.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/block.R b/R/block.R index 3a534b5296..14e3d0f10c 100644 --- a/R/block.R +++ b/R/block.R @@ -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)