n*********e 发帖数: 318 | 1 I have built an R job on Linux.
It reads in a small input file containing parameter values. Then it reads in
a big transactions file. and then dynamically slice and dice data, and
compute all sorts of statistics and ratios.
I currently run this R job in an interactive R session by using -
> source('myJob.R', verbose=T,echo=T)
It works fine but I would really like to run it as a Linux batch job.
Have anybody had such experience of running R batch job on Unix/Linux ?
Thanks!! |
g******2 发帖数: 234 | 2 Try something like "RCMD BATCH myJob.r" |
B******5 发帖数: 4676 | 3 should be
R CMD BATCH myJob.R
【在 g******2 的大作中提到】 : Try something like "RCMD BATCH myJob.r"
|
D******n 发帖数: 2836 | 4 i usually do
R CMD BATCH --no-save --no-restore
【在 B******5 的大作中提到】 : should be : R CMD BATCH myJob.R
|
B******5 发帖数: 4676 | 5 en, I agree this is a better practice
【在 D******n 的大作中提到】 : i usually do : R CMD BATCH --no-save --no-restore
|
l***z 发帖数: 61 | 6 I prefer Rscript, which has no command echo and makes output clean. |
t*d 发帖数: 1290 | 7 second this.
R CMD is old-fashion.
【在 l***z 的大作中提到】 : I prefer Rscript, which has no command echo and makes output clean.
|