The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
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('christopherkenny/typr') pak
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)
<- c(
doc '#set page(height: auto, width: auto)',
'= Example Doc',
'Some text'
)
typr_compile(doc, output_format = 'png')
#> C:/Users/chris/AppData/Local/Temp/Rtmpeow7sK/filea881b5c2983.png
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.