stanc3: Call stanc3 using processx

Description Usage Arguments Value

View source: R/stanc.R

Description

Calls stanc3 using processx. Thanks to Rok Cesnovar.

Usage

1
2
3
4
5
6
7
stanc3(
  code = "",
  stanc_path = NULL,
  args = c("--help"),
  print_stdout = TRUE,
  verbose = FALSE
)

Arguments

code

Stan code as a character vector

stanc_path

Path to the parent directory of stanc. If this is NULL, an attempt is made to find stanc from the CmdStan path set by cmdstanr.

args

Command line arguments to stanc. When args = c("--help"), the help page with all possible options is returned.

print_stdout

Should the output of stanc be printed?

verbose

Should some informational messages be printed?

Value

The output of processx::run for the stanc command. The output value is returned invisibly.


jtimonen/stanbreaker documentation built on Jan. 20, 2021, 12:34 a.m.