Learn R Programming

bsub (version 1.1.0)

retrieve_var: Retrieve saved variable

Description

Retrieve saved variable

Usage

retrieve_var(name, output_dir = bsub_opt$output_dir, wait = 30)

Arguments

name

Job name.

output_dir

The output dir set in bsub_chunk.

wait

Seconds to wait.

Value

The retrieved object.

Details

It retrieve the saved variable in bsub_chunk when save_rds = TRUE is set.

Examples

Run this code
# NOT RUN {
bsub_chunk(name = "example", save_var = TRUE,
{
    Sys.sleep(10)
    1+1
})
retrieve_var("example")
# }

Run the code above in your browser using DataLab