Program-controlled .panel-tabset #796
Replies: 3 comments 7 replies
-
For more complex composition of cell output into markdown we recommend using ::: {.panel-tabset .column-page}
## Scatterplot
```{r}
#| echo: false
#| output: asis
plot(cars)
```
## Histogram
```{r}
#| echo: false
#| output: asis
hist(rnorm(40), nclass = 5)
```
::: |
Beta Was this translation helpful? Give feedback.
-
Okay, we'll be on the lookout for scenarios like this where a common idiom can be easily expressed in yaml. I've been conservative at the outset but I think we'll start to see patterns like this one that make sense to automate. |
Beta Was this translation helpful? Give feedback.
-
Closing as completed with the code cell option |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
A wishlist item: I find it very convenient to have a chunk produce multiple plots and to have them in tabs. It would be helpful to have an automatic way to do this from within a single R chunk, e.g.
::: {.panel-tabset .column-page}
:::
Even better would be to allow some tabs to have non-graphical output (generated html or plain text).
Beta Was this translation helpful? Give feedback.
All reactions