Skip to contents

Executes the Typst compiler on a specified document. This function requires Typst to be installed and available in the system path.

Usage

compile_typst_document(
  provider_name,
  typst_path = system.file("bin/typst.exe", package = "RoundtableReporting")
)

Arguments

provider_name

Character string, name of the provider (used in file naming)

typst_path

Character string, path to typst executable (defaults to "typst")

Value

Integer exit code (0 for success, non-zero for failure)

Note

This function requires Typst to be installed on the system

Examples

if (FALSE) { # \dontrun{
compile_typst_document("example")
} # }