typr_query {typr} | R Documentation |
Query within a Typst file
Description
Query within a Typst file
Usage
typr_query(
input = NULL,
selector = NULL,
typst_args = NULL,
as_json = !rlang::is_installed("jsonlite")
)
Arguments
input |
a path to a |
selector |
a string to search for, e.g. a |
typst_args |
Additional arguments to pass to Typst. Can be listed with |
as_json |
if |
Value
a length one character with json syntax if !as_json
, otherwise a list
Examples
tf <- fs::file_temp(ext = 'typ')
writeLines(text = '= test <lbl>\n', con = tf)
typr_query(input = tf, selector = '<lbl>')
[Package typr version 0.0.3 Index]