Skip to content

output-location: column does not work with tabsets #3301

@albarran

Description

@albarran

Hi,

I am not sure if this is a bug or a feature, although but I have not been able to find it documented nor in other bugs reports.

I have Quarto document with output format revealjs. I include in my code chunks the options echo: true and output-location: column (the same happens with column-fragment).

It works as expected when in a regular slide. But if the code chunk in under panel tabset the output is not shown in an adjacent column, but below the code. Here is an example

---
title: "test"
format: revealjs
---

## Works as expected

Code in the left and `4` shown in an adjacent column.

```{r}
#| echo: true
#| output-location: column
2 + 2
```

## Tabset

::: {.panel-tabset}

### Tab 1

First tab

### Tab 2

Here output `4` is shown below the code

```{r}
#| echo: true
#| output-location: column
2 + 2
```
:::

Not sure if relevant in this case, but for completeness, I am using RStudio 2022.07.02 (build 576) with knitr engine under Linux (Lubuntu 22.10).

Thanks a lot in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions