retrieve_var: Retrieve saved variable

Description Usage Arguments Details Value Examples

View source: R/bsub.R

Description

Retrieve saved variable

Usage

1
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.

Details

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

Value

The retrieved object.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
bsub_chunk(name = "example", save_var = TRUE,
{
    Sys.sleep(10)
    1+1
})
retrieve_var("example")

## End(Not run)

bsub documentation built on July 1, 2021, 5:07 p.m.