79226236

Date: 2024-11-26 10:23:03
Score: 3.5
Natty:
Report link

The solution works great whith plots, but when I try the same with tables it does not work.
For example that code results in tabsets in the quarto document but without showing the tables

```{r}
library(tidyverse)
library(reactable)

data <- iris %>% as_tibble()

tabs <- data %>%
  group_nest(Species) %>% 
  deframe() %>% 
  map(., ~ {
    reactable(.x)
  }) 
```
# Iris Tables

::: panel-tabset

```{r}
#| results: asis
#| fig-width: 14
#| fig-height: 6

iwalk(tabs, ~ {
  cat('## ', .y, '\n\n')
  print(.x)
  cat('\n\n')
})
```

:::

So my question is:
What can I do to see tables in that quarto tabsets?

Reasons:
  • Blacklisted phrase (1): can I do
  • Blacklisted phrase (1): What can I do
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Ron