Generate all outputs from a spec
generate_outputs(spec, datasets, verbose_level = 2)
No return value, called for side effects
`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.
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()