Skip to content

Dynamically generate tabset panels in Quarto HTML documents

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

sayuks/quartabs

Repository files navigation

quartabs

R-CMD-check Codecov test coverage lint.yaml

Dynamically Generate Tabset Panels in Quarto HTML Documents.

Installation

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.

About

Dynamically generate tabset panels in Quarto HTML documents

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages