typr_watch | R Documentation |
Watch a Typst document
typr_watch(
input = NULL,
output_file = NULL,
output_format = c("pdf", "png", "svg", "html"),
typst_args = NULL
)
typr_watch_stop()
input |
either a path to a |
output_file |
file to output to |
output_format |
format to use. One of |
typst_args |
Additional arguments to pass to Typst. Can be listed with |
a path to the created file
tf <- fs::file_temp(ext = 'typ')
writeLines(text = '= test', con = tf)
typr_watch(tf)
writeLines(text = c('= test', 'hello'), con = tf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.