Skip to contents

Create a Typst file (.typ) from a character vector.

Usage

typst_write(x, ...)

Arguments

x

A character vector representing Typst code.

...

Additional arguments passed to tynding::typst_write()

Value

The path to the written .typ file, invisibly.

Examples

if (FALSE) { # \dontrun{
code <- c("= Hello World", "This is a Typst document.")
typst_write(code, output = "hello.typ")
} # }