Displaying Tables
For webr interactive code cells the render-df document YAML option can be used to change how data.frame objects are rendered in the output.
Available Options
| option | Description |
|---|---|
default |
Default output, text as if output at an R console. |
paged-table |
Render with rmarkdown::paged_table(). |
kable |
Render with knitr::kable(). |
gt |
Render with gt::gt(). |
gt-interactive |
Render with gt::gt() as an interactive table. |
DT |
Render with DT::datatable(). |
reactable |
Render with reactable::reactable(). |
Example
Source
table.qmd
----
format: live-html
webr:
render-df: gt-interactive
----
```{webr}
mtcars
```