Retrieve saved variable

retrieve_var(job_id, job_name = NULL, wait = 30)

Arguments

job_id

A single job ID.

job_name

A single job name. Since jobs may have the same names, the most recent job is selected.

wait

Seconds to wait until the job is finished.

Value

The retrieved object.

Details

It retrieves the saved variable in bsub_chunk() when save_rds = TRUE is set.

Examples

# \dontrun{
job_id = bsub_chunk(name = "example", save_var = TRUE,
{
    Sys.sleep(10)
    1+1
})
#> Error in bsub_chunk(name = "example", save_var = TRUE, {    Sys.sleep(10)    1 + 1}): Job can only be sumitted on the same file system as submission nodes.
retrieve_var(job_id)
#> Error in retrieve_var(job_id): Variable can only be retrieved on the same file system as submission node.
# }