Combines multiple validation results into a single result, aggregating errors, warnings, and info messages.
Value
An object of class fb4_validation (see
validation_result) representing the combined state of all
inputs. valid is TRUE only if all supplied results are
valid. errors and warnings are the concatenation of those
fields across all inputs.
Examples
r1 <- validation_result(valid = TRUE)
r2 <- validation_result(valid = FALSE, errors = "value out of range")
accumulate_validations(r1, r2)
#> $valid
#> [1] FALSE
#>
#> $errors
#> [1] "value out of range"
#>
#> $warnings
#> character(0)
#>
#> $info
#> character(0)
#>
#> $level
#> [1] "combined"
#>
#> $category
#> NULL
#>
#> $checked_items
#> list()
#>
#> $timestamp
#> [1] "2026-06-10 23:18:25 -04"
#>
#> attr(,"class")
#> [1] "fb4_validation"
