Re: [R] Exporting PDF

2010-04-20 Thread Phil Spector
Since R provides the file.exists() function for exactly this purpose, I would recommend avoiding using shell scripts for such a simple task. file.exists() is a multiplatform solution to the problem. - Phil Spector

Re: [R] Exporting PDF

2010-04-20 Thread Polwart Calum (County Durham and Darlington NHS Foundation Trust)
> I run the script and it exports a PDF called "version 1". > I want it to check if "version 1" already exists. If so, > then I want the new graphs to be exported as > "version 2", and so on. > > Is it possible to do it in R? Someone may know a way. However its certainly possible to execute a co

Re: [R] Exporting PDF

2010-04-18 Thread chrisli1223
Problem solved. I combined file.exists and while loop to create version number. Thank you very much for your help. -- View this message in context: http://n4.nabble.com/Exporting-PDF-tp2015263p2015366.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] Exporting PDF

2010-04-18 Thread jim holtman
a little searching would have found: ?file.exists On Sun, Apr 18, 2010 at 7:54 PM, chrisli1223 wrote: > > Hi everyone, > > I have written a script which exports my graphs as a PDF file using the > function pdf(). > > For instance, I run the script and it exports a PDF called "version 1". > Then,