eng_cmdstan: CmdStan knitr engine for Stan

View source: R/knitr.R

eng_cmdstanR Documentation

CmdStan knitr engine for Stan

Description

This provides a knitr engine for Stan, suitable for usage when attempting to render Stan chunks and compile the model code within to an executable with CmdStan. Use register_knitr_engine() to make this the default engine for stan chunks. See the vignette R Markdown CmdStan Engine for an example.

Usage

eng_cmdstan(options)

Arguments

options

(named list) Chunk options, as provided by knitr during chunk execution.

Examples

## Not run: 
knitr::knit_engines$set(stan = cmdstanr::eng_cmdstan)

## End(Not run)

stan-dev/cmdstanr documentation built on Aug. 13, 2024, 5:13 p.m.