Extract failed rows from flow results
failed.data.frame.RdReturns only the rows where execution failed, either overall or for a specific stage.
Usage
# S3 method for class 'data.frame'
failed(x, stage = NULL, ...)Examples
# Create a sample results tibble with diagnostic info
sample_out <- tibble::tibble(
.ok = c(TRUE, FALSE, TRUE, FALSE),
.diag = list(
list(validation = list(ok = TRUE, skipped = FALSE)),
list(validation = list(ok = FALSE, skipped = FALSE)),
list(validation = list(ok = TRUE, skipped = FALSE)),
list(validation = list(ok = FALSE, skipped = FALSE))
)
)
# Get all failed rows
failures <- failed(sample_out)
# Get rows that failed in specific stage
stage_failures <- failed(sample_out, stage = "validation")