... | ... | @@ -18,7 +18,7 @@ Your R-script file with the name test.R looks like this: |
|
|
|
|
|
reg <- glm(cbind(y2) ~ y1, family = binomial)
|
|
|
save(reg, file = "reg.Rdata")
|
|
|
}}}
|
|
|
|
|
|
To submit this R-script with qsub you need to create a shell script with the name R_test.sh that looks like this:
|
|
|
|
|
|
#!sh
|
... | ... | @@ -33,7 +33,7 @@ To submit this R-script with qsub you need to create a shell script with the nam |
|
|
#$ -M your.mail.address@lumc.nl
|
|
|
|
|
|
R CMD BATCH test.R
|
|
|
}}}
|
|
|
|
|
|
Now you can qsub your R-script like this:
|
|
|
|
|
|
qsub R_test.sh
|
... | ... | @@ -76,4 +76,3 @@ In eval(expr, envir, enclos) : non-integer #successes in a binomial glm! |
|
|
> proc.time()
|
|
|
user system elapsed
|
|
|
32.430 1.240 49.674 |
|
|
}}} |
|
|
\ No newline at end of file |