Generate all outputs from a spec

generate_outputs(spec, datasets, verbose_level = 2)

Arguments

spec

Specification list generated by `read_spec`

datasets

A `list` of datasets

verbose_level

Verbose level of messages be displayed. See details for further information.

Value

No return value, called for side effects

Details

`verbose_level` is used to control how many messages are printed out. By default, `2` will show all filter messages and show output generation message. `1` will show output generation message only. `0` will display no message.

Author

- Thomas Neitmann (`neitmant`) - Liming Li (`Lil128`)

Examples

library(dplyr, warn.conflicts = FALSE)
data <- list(
  adsl = eg_adsl,
  adae = eg_adae
)
filters::load_filters(
  yaml_file = system.file("filters.yml", package = "autoslider.core"),
  overwrite = TRUE
)

spec_file <- system.file("spec.yml", package = "autoslider.core")
spec_file %>%
  read_spec() %>%
  filter_spec(output %in% c("t_dm_slide_IT", "t_ae_slide_SE")) %>%
  generate_outputs(datasets = data)
#>  No output matched the filter condition `output %in% c("t_dm_slide_IT", "t_ae_slide_SE")`
#> named list()