<-
tab_rtf |>
gtcars ::select(mfr, model) |>
dplyr::slice(1:2) |>
dplyrgt() |>
tab_header(
title = md("Data listing from **gtcars**"),
subtitle = md("`gtcars` is an R dataset")
|>
) as_rtf()
The as_rtf()
function
Use gtcars
to create a gt table. Add a header and then export as RTF code.