The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
Dynamically Generate Tabset Panels in Quarto HTML Documents.
install.packages("quartabs")
You can install the development version of quartabs from GitHub with:
# install.packages("pak")
::pak("sayuks/quartabs") pak
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.
Please note that the quartabs project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.