On Thu, Mar 12, 2009 at 01:25:40PM -0700, Atul Joshi wrote: > When I run my .r script using source (myfilename) from console the plots > appear. > > However, when I execute the same file via terminal command line using R CMD > BATCH myfilename, the plots do not appear. > > I am working with Mac. > > Am I doing something wrong?
In BATCH mode it does not make much sense to display plots on the screen because the script may be running on a system without screen (cluster). So R uses a different default device. On my LINUX system it's pdf, so all my plots go to Rplots.pdf unless I explicitly send them somewhere else. I don't know about the defaults on Macs but you should be able to find the file in the current directory easily. cu Philipp -- Dr. Philipp Pagel Lehrstuhl für Genomorientierte Bioinformatik Technische Universität München Wissenschaftszentrum Weihenstephan 85350 Freising, Germany http://mips.gsf.de/staff/pagel ______________________________________________ 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.