How can I make my batch submission track iteration number?
To track iteration number for batch submissions, use one of the following:
--args '$(Process)'to the Arguments line of your Condor submit file. This passes to the R process the process number of the R run, which progresses from 0 to one less than the number of runs.
- Capture the argument in a variable in your R code by entering the following line:
run <- commandArgs(TRUE). The R object
runcontains the run number. You then can use this object to construct appropriate output file names for your job.