This function allows dynamic aggregation and validation of data read by orbi_read_raw(). Like orbi_read_raw(), it is designed to be fail save by safely catching errors and reporting back on them (see orbi_get_problems()). This function should work out of the box for most files without additional modification of the aggregator.
Usage
orbi_aggregate_raw(
files_data,
aggregator = "standard",
show_progress = rlang::is_interactive(),
show_problems = TRUE
)Arguments
- files_data
the files read in by
orbi_read_raw()- aggregator
typically the name of a registered aggregator (see all with
orbi_get_option("aggregators")), default is the "standard" aggregator included in the package (orbi_get_aggregator("standard")). Other options are "minimal" (orbi_get_aggregator("minimal")) and "extended" (orbi_get_aggregator("extended")). Theaggregatorparameter can can also directly be an aggregator tibble (created/modified withorbi_start_aggregator()and/ororbi_add_to_aggregator()) that defines which data should be aggregated and how.- show_progress
whether to show a progress bar, by default always enabled when running interactively e.g. inside RStudio (and disabled in a notebook), turn off with
show_progress = FALSE- show_problems
whether to show problems encountered along the way (rather than just keeping track of them with
orbi_get_problems()). Set toshow_problems = FALSEto turn off the live printout. Either way, all encountered problems can be retrieved with runningorbi_get_problems()for the returned list
