[R] how to send text output to its own window

Michael Friendly friendly at yorku.ca
Tue Mar 6 14:50:01 CET 2012


On 3/5/2012 6:35 AM, Robert Kinley wrote:
> platform:  R 2.14.2   -    Windows XP -  Rstudio
>
> When I use cat()  or print()  in a script, the output text is of course
> mixed up with the lines of the script.
>
> I can  sink()  the output to a textfile and then play the file back at the
> end of the script, but that's not really what I'm after.
>
> It would be nice if the lines of text output could appear in a separate
> window,  in the same sort of way that you'd use  windows() for graphical
> output.

Examine the code in history to see how this is done, using a temporary 
file and file.show()


-- 
Michael Friendly     Email: friendly AT yorku DOT ca
Professor, Psychology Dept.
York University      Voice: 416 736-5115 x66249 Fax: 416 736-5814
4700 Keele Street    Web:   http://www.datavis.ca
Toronto, ONT  M3J 1P3 CANADA



More information about the R-help mailing list