R package: R.batch