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)