Skip to contents

Retrieves the batch results and parses them into a panel_responses, identical in shape to a synchronous panel_administer() run. Responses are joined to the grid by request id, so the order the provider returns them in does not matter.

Usage

panel_batch_fetch(job)

Arguments

job

A panel_batch_submit() handle (or a state_path to one).

Value

A panel_responses object.

Examples

# Fetching reads the job saved at submission, once the provider reports it
# complete; the result has the same shape as a synchronous run.
state <- file.path(tempdir(), "panel_job.rds")
# \donttest{
if (file.exists(state)) {
  responses <- panel_batch_fetch(state)
}
# }