Make your code output easier to see in RStudio
When I live code, it's often the little things that I do that people are most interested in. I was recently doing some live coding and someone asked how I changed where the output of my code showed up when working in a Quarto document. Here's a short video to show you how to change your code chunk output to show up in your console when working in RStudio.
Code shown in video
---
title: "Chunk Output in Console"
format: html
editor_options:
chunk_output_type: console
---
```{r}
library(tidyverse)
library(palmerpenguins)
```
```{r}
penguins |>
count(island)
```
```{r}
penguins |>
count(island) |>
ggplot(
aes(
x = island,
y = n
)
) +
geom_col()
```
Sign up for the newsletter
Get blog posts like this delivered straight to your inbox.
You need to be signed-in to comment on this post. Login.