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.

______________________________________________
R-help@r-project.org 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.

Reply via email to