parallelStartBatchtools(logging = TRUE, storagedir = "paralleltmp", show.info = TRUE)
pmresult = parallelMap(function(x) list(result = x * x + 1, info = Sys.getenv()), 1:10, show.info = TRUE)
gives error
Mapping in parallel: mode = batchtools; level = NA; cpus = NA; elements = 10.
Error in `$<-.data.frame`(x, name, value) :
replacement has 0 rows, data has 10
This is I believ an error here:
|
x$log.file = file.path(reg$file.dir, "logs", sprintf("%s.log", x$job.hash)) |
where x does not have the entry job.hash. Maybe the API changed between Batchtools and BatchJobs and this was copied and never tested?