Skip to content

cran/typr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

typr

R-CMD-check

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.

Installation

You can install the development version of typr from GitHub with:

# install.packages('pak')
pak::pak('christopherkenny/typr')

Example

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.png

Example image generated by the above code

Example image generated by the above code

About

❗ This is a read-only mirror of the CRAN R package repository. typr — Write and Render 'Typst' Documents. Homepage: http://christophertkenny.com/typr/https://github.com/christopherkenny/typr

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages