Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rstan_config

Configure system files for compiling Stan source code


Description

Creates or update package-specific system files to compile .stan model files found in inst/stan.

Usage

rstan_config(pkgdir = ".")

Arguments

pkgdir

Path to package root folder.

Details

The Stan source files for the package should be stored in:

  • inst/stan for .stan files containing instructions to build a stanmodel object.

  • inst/stan/any_subfolder for files to be included via the #include "/my_subfolder/mylib.stan" directive.

  • inst/stan/any_subfolder for a license.stan file.

  • inst/include for the stan_meta_header.hpp file, to be used for directly interacting with the Stan C++ libraries.

Value

Invisibly, whether or not any files were added/removed/modified by the function.


rstantools

Tools for Developing R Packages Interfacing with 'Stan'

v2.1.1
GPL (>= 3)
Authors
Jonah Gabry [aut, cre], Ben Goodrich [aut], Martin Lysy [aut], Stefan Siegert [ctb], Trustees of Columbia University [cph]
Initial release
2020-07-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.