Tests whether the Typst command-line interface is installed and accessible.
Usage
tt_typst_available(typst_path = NULL)
Arguments
- typst_path
Optional path to the Typst executable. If NULL, searches
for typst on the system PATH.
Value
TRUE if Typst is available, FALSE otherwise.
Examples
# Check if Typst is installed
if (tt_typst_available()) {
message("Typst is available")
} else {
message("Typst not found - install from https://typst.app/")
}
#> Typst is available