Skip to content
R for the Rest of Us Logo

Fundamentals of R

Code Chunks

Transcript

Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.

Learn More

To learn about the various options for code chunks, check out the Quarto website.

Have any questions? Put them below and we will help you out!

You need to be signed-in to comment on this post. Login.

Maria Athayde

Maria Athayde • October 8, 2024

So, is the purpose of Quarto primarily for data viz? It isn't something that for example you'd use for summary stats unless have some visual component with it?

Gracielle Higino

Gracielle Higino Coach • October 8, 2024

Hi Maria! You can use Quarto for all sorts of things, including reporting summary stats. For example, I use Quarto to write scientific papers and to report survey results on a webpage for my husband's class. I'd say the purpose of Quarto is to provide you with tools to reproducibly report something.

Steven Meyer

Steven Meyer • October 15, 2024

I was wondering why David's output was showing up in the RStudio Viewer tab, but mine was not; my rendered output was going to a web-page. Our YAMLs were the same, so I wondered if it was a setting, which it was: Tools --> Global Options --> R Markdown --> Show output preview in: Viewer Pane.

David Keyes

David Keyes Founder • October 16, 2024

Thanks for sharing!

Alagammai Meyyappan

Alagammai Meyyappan • March 29, 2025

I can't seem to find messages in my code chunk options. 'execute' shows up eval, echo, output, warning, error, include, cache and freeze.

Gracielle Higino

Gracielle Higino Coach • March 31, 2025

Hi Alagammai! I'm not sure what you mean by "find messages in my code chunk options" as we need to write them down, not select them. In any case, there's a chance that your rendering engine is not set up as Knitr, that's why Quarto is not recognizing messages as a code chunk execution option. Try typing it down anyway and rendering your document, and let us know what error messages you get!