move batchman.is.done to utils.R