I am trying to determine if there is an existing option to have code_folding enabled within a distill_article and not display individual code chunks for embedded code that displays output.
title: "Example code"
output:
distill::distill_article:
code_folding: TRUE
``{r, code_folding = 'I do not want to show this'}
knitr::include_graphics('logo.png')
``
Using include = FALSE removes the output - so I don't get the image.
``{r, include = FALSE}
knitr::include_graphics('logo.png')
``
Is there a way to display output and not show code chunks for individual embedded chunks?
cderv
April 30, 2021, 5:39pm
2
On a chunk level you can set echo = FALSE
to completly remove source code chunk to be shown in output.
I that what you are looking for ?
This book showcases short, practical examples of lesser-known tips and tricks to helps users get the most out of these tools. After reading this book, you will understand how R Markdown documents are transformed from plain text and how you may...
Thank you for the response.
When I use the following code chunk it still shows the "Show code" hidden code chunk. Your solution works in a regular R markdown html document, but not within a distill_article.
``{r, echo = FALSE}
knitr::include_graphics('images/logo.png')
``
system
Closed
May 21, 2021, 5:41pm
4
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.