Learn R Programming

rms (version 6.0-0)

stanCompile: Compile Stan Code

Description

Retrieves Stan code files from the github repository, compiles then with rstan::stan_model, and stores the compiled code in a central placed defined by the user with e.g. options(stancompiled='~/R/stan'). stanCompile

Usage

stanCompile(
  mods = c("lrm", "lrmc", "lrmppo", "lrmcppo", "lrmcar1"),
  repo = "https://raw.githubusercontent.com/harrelfe/stan/master"
)

Arguments

mods

character vector of base names of .stan model files to compile. Default is to compile all those currently in use in rms

repo

URL to online source file base

Examples

Run this code
# NOT RUN {
  
# }
# NOT RUN {
  options(stancompiled='~/R/stan')    # need this always
  stanCompile()    # do this once per computer to compile centrally
  
# }

Run the code above in your browser using DataLab