| typst_write | R Documentation |
Create a Typst file (.typ) from a character vector.
typst_write(x, output = NULL)
x |
A character vector representing Typst code. |
output |
Optional output file path (must end with ".typ"). If NULL, a temporary file is created. |
The path to the written .typ file, invisibly.
## Not run:
code <- c("= Hello World", "This is a Typst document.")
typst_write(code, output = "hello.typ")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.