typstR helps researchers and policy teams go from a Quarto manuscript to a polished Typst PDF without learning Typst internals. It ships a working-paper-first scaffold, publication metadata helpers, and render wrappers so the default path stays simple: scaffold a project, edit one .qmd, and render when you are ready.
remotes::install_github("DavidZenz/typstR")
typstRinstalls like any other R package. You only need Quarto when you render a document.
Start with the working paper scaffold:
library(typstR)
create_working_paper("my-paper")
# edit my-paper/template.qmd
render_working_paper("my-paper/template.qmd")That working-paper path is the main onboarding flow for the package. It gives you one concrete manuscript shape to learn first, then lets you branch into other formats later.
create_working_paper("my-paper") creates a compact project with:
template.qmdfor the manuscript you actually edit_quarto.ymlfor project-level Quarto settingsreferences.bibfor citations_extensions/typstR/for the bundled format extension
The starter manuscript already includes a title block, author metadata,
abstract, bibliography wiring, and the typstR: YAML block for fields such as
keywords, JEL codes, acknowledgements, funding, and report number.
For the full walkthrough of what to edit in template.qmd, _quarto.yml, and
references.bib, start with
vignette("getting-started", package = "typstR").
After the working-paper flow is familiar, typstR also ships scaffolders for
two adjacent formats:
create_article("my-article")
create_policy_brief("my-brief")Use create_article() for article-style manuscripts without a report-number block, and create_policy_brief() for shorter, policy-facing documents with brief-oriented sections such as Key Findings and Policy Implications.
The exported helpers keep manuscript metadata readable and reusable:
author(),affiliation(), andmanuscript_meta()build structured author and affiliation metadata.funding(),data_availability(), andcode_availability()capture standard publication statements.keywords(),jel_codes(), andreport_number()provide typed publication metadata.fig_note(),tab_note(), andappendix_title()support common manuscript annotations.render_pub()andrender_working_paper()wrap Quarto rendering from R.
For the documentation hub version of this workflow, use pkgdown/index.md.