[R] How to open a text file in my screen (not in the R sessio n)?

Molins, Jordi Jordi.Molins at drkw.com
Wed Nov 23 11:13:38 CET 2005


Thank you for all the answers.

I have used

system("notepad predictions.txt",wait=FALSE)

and it works. Just a final question: is there a way to force the file to
open on top of all the other applications in my desktop?


> -----Original Message-----
> From: Massimiliano Tripoli [mailto:massimiliano.tripoli at ieo.it]
> Sent: 23 November 2005 19:39
> To: Molins, Jordi; 'r-help at stat.math.ethz.ch'
> Cc: Jordi Molins
> Subject: Re: [R] How to open a text file in my screen (not in the R
> session)?
> 
> 
> You could use the following istruction:
> 
> system("notepad predictions.txt",wait=FALSE)
> 
> I hope this will be helpful.
> 
> Regards,
> 
> Massimiliano
> 
> At 01:00 AM 11/23/2005, Molins, Jordi wrote:
> 
> >In the middle of my code, I have the following:
> >
> >write.table(PredictionTest, file = "predictions.txt")
> >
> >what I would like is that inmediately after this line is 
> executed, the file
> >predictions.txt is opened in the middle of my screen (not in 
> my R session,
> >where I continue running my code). Is there an easy way to do that?
> >
> >Thank you
> >
>


--------------------------------------------------------------------------------
The information contained herein is confidential and is inte...{{dropped}}




More information about the R-help mailing list