The goal of typr
is to render Typst documents from R. By default, it will try to use the Typst CLI. If the Typst CLI is not installed, it will try to use Quarto, which bundles Typst.
You can install the development version of typr
from GitHub with:
# install.packages('pak') pak::pak('christopherkenny/typr')
The following example shows how to use typr
to render a Typst document. It can take a path to a file or lines to use. Below, I pass lines to compile:
library(typr) doc <- c( '#set page(height: auto, width: auto)', '= Example Doc', 'Some text' ) typr_compile(doc, output_format = 'png') #> C:/Users/chris/AppData/Local/Temp/Rtmpeow7sK/filea881b5c2983.pngExample image generated by the above code
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4