typr_compile | R Documentation |
Compile a Typst document
typr_compile(
input = NULL,
output_file = NULL,
output_format = c("pdf", "png", "svg", "html"),
typst_args = NULL
)
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
typr_compile('hello world')
typr_compile(
input = 'Hello world', output_format = 'png',
typst_args = c('--ppi', '300')
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.