[R] How to print out console output
K. Elo
maillists at nic.fi
Fri Aug 29 09:56:57 CEST 2008
Hi,
as mentioned in my previous posting, I run R on a linux machine. So a
possible function for printing (in linux) could look like this:
copy2lpr<-function(..., PRINTER="lpr") {
LPR<-pipe(PRINTER,"w")
capture.output(..., file=LPR)
close(LPR)
}
This seems to work... An allows the user to choose another destination,
options for printing etc.
Thanks for helping!
Kind regards,
Kimmo
More information about the R-help
mailing list