typr_init: Create a project from a template

View source: R/init.R

typr_initR Documentation

Create a project from a template

Description

Create a project from a template

Usage

typr_init(template = NULL, version = NULL, dir = NULL, typst_args = NULL)

Arguments

template

a template to use, can be local or on Typst Universe. If the string does not specify ⁠@preview⁠ or ⁠@local⁠, '@preview' will be prepended.

version

a version string, e.g. ⁠0.1.0⁠

dir

The project directory

typst_args

Additional arguments to pass to Typst. Can be listed with typr_help('init')

Value

a directory, invisibly

Examples


typr_init('charged-ieee', dir = paste0(tempdir(), '/typr_example'))


typr documentation built on June 8, 2025, 10:36 a.m.