Dynamically Generate Tabset Panels in 'Quarto' HTML Documents

Dynamically generate tabset panels < https://quarto.org/docs/output-formats/html-basics.html#tabsets> in 'Quarto' HTML documents using a data frame as input.


quartabs

R-CMD-check Codecov testcoverage lint.yaml

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.

Code of Conduct

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.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("quartabs")

0.1.1 by Yusuke Sasaki, 2 years ago


https://sayuks.github.io/quartabs/, https://github.com/sayuks/quartabs


Report a bug at https://github.com/sayuks/quartabs/issues


Browse source code at https://github.com/cran/quartabs


Authors: Yusuke Sasaki [aut, cre]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports stats

Suggests altdoc, dplyr, DT, flextable, gt, htmltools, knitr, plotly, purrr, quarto, reactable, sessioninfo, spelling, testthat, tibble, tidyr, tinytable, utils


See at CRAN