Dynamically generate tabset panels in Quarto HTML documents
https://sayuks.github.io/quartabs/ โ// momentum
// why it's here
- Active: last commit today
- Built almost entirely by one person
- Health 100/100 with only 21 stars
// how to help
// readme
quartabs
coverage](https://codecov.io/gh/sayuks/quartabs/graph/badge.svg)](https://app.codecov.io/gh/sayuks/quartabs)
The quartabs is an R package that dynamically generates Tabset
Panels
in Quarto HTML documents.
Installation
You can install quartabs from CRAN:
install.packages("quartabs")
You can install the development version of quartabs from
GitHub with:
# install.packages("pak")
pak::pak("sayuks/quartabs")
Examples
render_tabset() takes a data frame as input and outputs the markdown
that generates the
tabset
to stdout (console).
In the actual .qmd file, specify the chunk option results: asis.
library(quartabs)
data.frame(
tab = c("A", "B"),
value = c("Tab content for A", "Tab content for B")
) |>
render_tabset(tab, value)
#> ::: {.panel-tabset}
#>
#> # A
#>
#> Tab content for A
#>
#> # B
#>
#> Tab content for B
#>
#> :::
See Get started for details.