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
> 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
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.
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,
4 matches
Mail list logo