orderly_batch: Run a batch of reports.

View source: R/batch.R

orderly_batchR Documentation

Run a batch of reports.

Description

Run one report multiple times with different sets of parameters.

Usage

orderly_batch(name = NULL, parameters = NULL, continue_on_error = TRUE, ...)

Arguments

name

Name of the report to run (see orderly_list()). A leading ⁠src/⁠ will be removed if provided, allowing easier use of autocomplete. Alternatively, the default of NULL is useful if you have already set the working directory to be the source directory.

parameters

Data frame of parameters passed to report. Each row represents a parameter set to be passed to one report run.

continue_on_error

If FALSE then if one report run fails the function will not attempt to run subsequent reports in the batch. If TRUE subsequent parameter sets will be run. If the report run fails during preparation e.g. because of missing parameters this will error and stop all subsequent parameter sets.

...

Additional args passed to orderly_run()

Value

List of ids of newly created reports

See Also

orderly_run() for details of report running

Examples


path <- orderly::orderly_example("demo")
params <- data.frame(nmin = c(0.2, 0.25))
ids <- orderly::orderly_batch("other", params, root = path)

vimc/orderly documentation built on July 8, 2023, 2:31 a.m.