When I render quarto reports I often use the code-fold option to make the code accessible in the final report without it disrupting the report.
“`{python}
#| code-fold: true
print(‘hello’)
“`
Is there a similar option for folding the output of the chunk? This would be useful for output that I’d like available in the report but don’t want displayed by default.
for example sessionInfo() will output an enormous amount of text that is only relevant to a limited set of readers … so I’d love to include it but only within a fold.
“`{r}
sessionInfo()
“`