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:[EMAIL PROTECTED]
> Sent: 23 November 2005 19:39
> To: Molins, Jordi; '[email protected]'
> 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}}
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html