Objects are saved in subdirectory “exports” of the
“file.dir” of reg
.
They are automatically loaded and placed in the global environment
each time the registry is loaded or a job collection is executed.
batchExport( export = list(), unexport = character(0L), reg = getDefaultRegistry() )
export | [ |
---|---|
unexport | [ |
reg | [ |
[data.table
] with name and uri to the exported objects.
#>#>#> Empty data.table (0 rows and 2 cols): name,uri#>#>#> name uri #> 1: y /tmp/batchtools-example/reg/exports/PE.rds #> 2: z /tmp/batchtools-example/reg/exports/PI.rds#>#> [1] TRUEstopifnot(loadResult(1, reg = tmp) == 101) # Un-export z exports = batchExport(unexport = "z", reg = tmp)#>#> name uri #> 1: y /tmp/batchtools-example/reg/exports/PE.rds