This is the R-help mailing list. See help(BATCH). You will need to write the required R commands in a separate script, say script.R and then execute it as
R --no-save < script.R > logfile You may need to augment the code above to include directory paths etc. There are other useful documentations at http://www.r-project.org/ Regards, Adai Tanya Li wrote: > Hello, > > I got this email address from > http://tolstoy.newcastle.edu.au/R/e2/help/06/10/2516.html, I got started to > use R recently, Can I ask you a question ? > > this is what I am using: > platform i686-pc-linux-gnu > arch i686 > os linux-gnu > system i686, linux-gnu > status > major 2 > minor 4.0 > year 2006 > month 10 > day 03 > svn rev 39566 > language R > version.string R version 2.4.0 (2006-10-03) > > I wanna to call R in shell( bash ) , write all R commands in the shell > script and make it a cron job to execute automatically. > > do you know how to do this ? > > Looking forward to hearing from you, thanks a million. > > Tanya Li ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.