Open gdevenyi opened 6 years ago
Hmmm I dunno, it's reasonably well documented that anything not "local"
means ship to batchtools
. But maybe I should just have NULL
, ("local", N)
, or ("batchtools", N)
as the only allowable options. It is a bit weird to pass in a two element character vector as a control list anyway but I don't really want to build around this now.
I'm okay with changing to only those three options, since batchtools congfig is handled elsewhere.
Come to think of it, I think I would actually prefer a global setting for the parallel backend, that way, I only need to change a script in one place to switch between local and cluster execution, instead of every instance of a parallel call. Although I guess that could be done with a variable passed to parallel...
That's already how it works, batchtools can run sequential and multicore you just need to set a config. It won't be quite as fast as the "local" but it's do-able
Accidentally, did c("parallel",12) instead of c("local",12) and got a TORQUE job submission.
Should error out instead.