typst_write: Write a Typst file from a character vector

View source: R/write.R

typst_writeR Documentation

Write a Typst file from a character vector

Description

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

Usage

typst_write(x, output = NULL)

Arguments

x

A character vector representing Typst code.

output

Optional output file path (must end with ".typ"). If NULL, a temporary file is created.

Value

The path to the written .typ file, invisibly.

Examples

## Not run: 
code <- c("= Hello World", "This is a Typst document.")
typst_write(code, output = "hello.typ")

## End(Not run)


tynding documentation built on March 31, 2026, 5:06 p.m.