powered by
Retrieve saved variable
retrieve_var(job_id, job_name = NULL, wait = 30)
The retrieved object.
A single job ID.
A single job name. Since jobs may have the same names, the most recent job is selected.
Seconds to wait until the job is finished.
It retrieves the saved variable in bsub_chunk() when save_rds = TRUE is set.
bsub_chunk()
save_rds = TRUE
if (FALSE) { job_id = bsub_chunk(name = "example", save_var = TRUE, { Sys.sleep(10) 1+1 }) retrieve_var(job_id) }
Run the code above in your browser using DataLab