Returns a summary of what would be resumed from a checkpoint. Useful for informing users about resume state before actually loading and resuming.
Value
A list with elements:
checkpoint_id: ID of the checkpointn_total: Total number of tasksn_completed: Number of completed (success + failed) tasksn_pending: Number of pending tasks
Returns NULL if no valid resume state exists.
Examples
if (FALSE) { # \dontrun{
summary <- get_resume_summary("/path/to/results")
if (!is.null(summary)) {
cli::cli_alert_info("Checkpoint: {summary$checkpoint_id}")
cli::cli_alert_info("Completed: {summary$n_completed}/{summary$n_total}")
cli::cli_alert_info("Remaining: {summary$n_pending}")
}
} # }