Closed mschubert closed 10 years ago
Micheal,
thank you for the detailed report. Looking into it right now.
I'm trying to make your life easier because I will submit at least one more ;-)
Looking at this again, it might be sufficient to change line 55 to:
if (!missing(chunk.size) || !missing(n.chunks))
The chunk error handling seems to already be provided by the chunk()
function.
Yup, I already did that.
Trying to figure out how to add a unit test for that, but will push soon.
And keep the feedback coming, it's appreciated.
It is unit-tested and pushed. You can close if it works for you.
Yep, that seems to work. Cool, thanks for fixing it so quickly! :-)
Consider the function below. Each time I have got 4 jobs that should be put in one chunk, but LSF always submits 4 individual jobs disregarding the chunks I specify.
Note: this works fine when specifying the chunks manually (last example).
The problem seems to be lines 55/56 in R/batchMapQuick.R:
Here, the conditions are only true if both chunk.size and n.chunks are given. It should rather be something like: