A wrapper for R methods to run them in arbitrary batches.