Skip to content

Commit

Permalink
Avoid partial matching with params$code
Browse files Browse the repository at this point in the history
fixes #2168
  • Loading branch information
cderv committed Sep 6, 2022
1 parent 73ff17b commit 4940521
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 @@ -56,7 +56,7 @@ call_block = function(block) {
if (opts_knit$get('progress')) print(block)

if (!is.null(params$child)) {
if (!is_blank(params$code)) warning(
if (!is_blank(params[['code']])) warning(
"The chunk '", params$label, "' has the 'child' option, ",
"and this code chunk must be empty. Its code will be ignored."
)
Expand Down

0 comments on commit 4940521

Please sign in to comment.