The generator supports progress reporting with the progressr package. Run progressr::handlers(global = TRUE) to enable progress reporting globally, see the progressr docs for more options.

SBC_generator_function(
  f,
  future.chunk.size = getOption("SBC.generator_chunk_size", +Inf),
  future.globals = TRUE,
  ...
)

Arguments

f

function returning a list with elements variables (prior draws, a list or anything that can be converted to draws_rvars) and generated (observed dataset, ready to be passed to backend)

future.chunk.size

if finite, datasets will be generated in parallel using the future package with this chunk size (see future.apply::future_lapply). Defaults to the SBC.generator_chunk_size option, which defaults to +Inf (no paralellism).

...

Additional arguments passed to f