retrieve_var: Retrieve saved variable

View source: R/retrieve.R

retrieve_varR Documentation

Retrieve saved variable

Description

Retrieve saved variable

Usage

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.

Details

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

Value

The retrieved object.

Examples

## Not run: 
job_id = bsub_chunk(name = "example", save_var = TRUE,
{
    Sys.sleep(10)
    1+1
})
retrieve_var(job_id)

## End(Not run)

jokergoo/bsub documentation built on June 30, 2024, 5:16 p.m.