| save_as_typst | R Documentation |
Writes one or more flextables to a standalone Typst
(.typ) document. Images are embedded as base64 (decoded inline at
compile time), so the file is self-contained and compiles offline with
typst compile. Equations require the mitex Typst package, which is
fetched from the Typst package registry on first compilation.
save_as_typst(
...,
values = NULL,
path,
page = "#set page(width: auto, height: auto, margin: 12pt)"
)
... |
flextable objects, possibly named. |
values |
a list of flextable objects. If provided, |
path |
Typst file to be created. |
page |
a Typst |
the path to the generated file, invisibly.
ft <- flextable(head(iris))
tf <- tempfile(fileext = ".typ")
save_as_typst(ft, path = tf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.