Creates a data node (via bg_set_node_data), a cmdstanr_fit node consuming
it, dispatches bg_run, and returns the fit node id invisibly while printing
the run handle. Extra
arguments in ... become the fit node's params (e.g. chains, seed,
iter_warmup, iter_sampling).
Arguments
- project
A
bg_handle.- stan_file
Path to the Stan model file. Relative paths resolve against the project root when the file exists there, and from the working directory otherwise.
- data
A named list (or environment) of Stan data.
- label
Optional label for the fit node.
- ...
Passed to the fit node as params (e.g.
chains = 4).- handle
Deprecated synonym for
project; accepted with a once-per-session warning.
Details
Call bg_use_cmdstanr() first so the cmdstanr_fit kind is registered.