Open cderv opened 4 months ago
Thanks, I agree reticulate should support results = 'hide'
option.
What is the relation or difference between include = FALSE
and results = 'hide'
?
I believe that reticulate already has support for a include = FALSE
chunk option.
include = FALSE
means that chunks are ran, but nothing (nor source or results) is added to the output. This is directly handled by knitr for all engine as it will only show the processed output
of an engine when include = TRUE
.
results = "hide"
means to hide the results in the outputs. echo = FALSE
and results = "hide"
together are almost equivalent to include = FALSE
, except with includes, all the hooks will still apply (especially the output hooks). While for results is does not necessarily. But usually the hooks may not do any difference.
Anyhow, I don't think reticulate needs to handle include, but it needs to handle results. I'll send a PR.
Reported in
and full example at
Problem
Currently,
results = 'hide'
does not seem to be handled by reticulate's knitr engine. Example: