[R] R with command line

Duke duke.lists at gmx.com
Wed Apr 28 00:15:56 CEST 2010


Hi all,

I am testing R by trying R on command line (ie without opening R 
console) on a Mac Pro with 10.6. So I created a file plot.R:

x11(width=5,height=3.5)
plot(1:10,1:10)

So I have two questions below (please forgive me if the questions have 
been asked already)

1. What is the different between *R CMD BATCH infile.R* and *R --vanilla 
--slave < infile.R*?

2. When I ran plot.R with one of the above methods, the plot showed up 
for like a second and disappear. What should I do to keep the plot there 
until the user closes it?

Thanks,

D.



More information about the R-help mailing list