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

Uwe Ligges ligges at statistik.uni-dortmund.de
Wed Nov 23 10:43:08 CET 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

If the pager is set up appropriately use file.show() or start another 
program by a system() call.

Uwe Ligges


> 
> 
> --------------------------------------------------------------------------------
> The information contained herein is confidential and is inte...{{dropped}}
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list