I wanted to submit a R job to the grid. I have saved the main R code in MGSA_rand.r
In the file callmgsa.r
I have written
print('here')
source('/home/users/pegah/MGSA_rand.r')
mgsalooprand($SGE_TASK_ID,382)
And I use the file Rscript.sh
to call the job (with the -t
parameter I send the value corrseponding to $SGE_TASK_ID)
R CMD BATCH --no-save callmgsa.r
I submit the job like this:
qsub -t 1 -cwd -b y -l vf=1000m /home/users/pegah/Rscript.sh
I neither get an error nor any output. The job terminates just as I submit it, with out any output. Could you please help me?
thanks, Pegah