mllg / batchtools

Tools for computation on batch systems
https://mllg.github.io/batchtools/
GNU Lesser General Public License v3.0
170 stars 51 forks source link

setJobFunction #207

Closed dajmcdon closed 5 years ago

dajmcdon commented 5 years ago

In the old BatchTools version described in the JSS paper, there was a setJobFunction() which was good for fixing buggy code. Does batchtools have an analogue? Similarly, if, for instance, the algorithms (or a subset thereof) depend on an R package, and the package gets updated, can you rebind to the new package, and rerun the experiments without regenerating the problem instances?

mllg commented 5 years ago

In the old BatchTools version described in the JSS paper, there was a setJobFunction() which was good for fixing buggy code. Does batchtools have an analogue?

I will re-implement something like this. Possibly together with #209.

Similarly, if, for instance, the algorithms (or a subset thereof) depend on an R package, and the package gets updated, can you rebind to the new package, and rerun the experiments without regenerating the problem instances?

If you've added your problem with cache = TRUE, the instances are already cached on the file system. A package upgrade does not invalidate this cache. Simply re-running the respective experiments should pick up the previously computed instance, load the upgraded package and use it for the remaining part of the computation.