edstan_model_code: Read and print the code for an edstan model

View source: R/summarize.R

edstan_model_codeR Documentation

Read and print the code for an edstan model

Description

This function reads a Stan file from the 'inst/extdata/' directory of the package, returning its contents invisibly while optionally printing them.

Usage

edstan_model_code(filename, print = TRUE)

Arguments

filename

The name of the stan file.

print

Whether to print the stan file contents. Default is 'TRUE'.

Value

Invisibly returns a character vector of the stan file contents.

Examples

# View the Stan code for the Rasch model
edstan_model_code("rasch_latent_reg.stan")

danielcfurr/edstan documentation built on June 11, 2025, 6:10 p.m.