[R] How to print out console output

K. Elo maillists at nic.fi
Wed Aug 27 13:44:05 CEST 2008


Dear R-helpers,

I am desperately looking for a solution for how to print out the console 
output to a standard printer. For example, I would like to print out the 
summary.lm() output, the output of different ftable-functions etc. I use 
R on a linux machine.

The only ways so far have been to copy-paste the output into an external 
editor or to use sink() to redirect the output into a text file and then 
use shell commands to print out the file. Both ways work but are a bit 
laborious :)

Many thanks in advance for Your help!

Kind regards,
Kimmo



More information about the R-help mailing list