[R] print() to file?

Greg Snow Greg.Snow at imail.org
Wed Jul 8 21:16:08 CEST 2009


?sink

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111


> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Steve Jaffe
> Sent: Wednesday, July 08, 2009 1:03 PM
> To: r-help at r-project.org
> Subject: [R] print() to file?
> 
> 
> I'd like to write some objects (eg arrays) to a log file. cat()
> flattens them
> out. I'd like them formatted as in 'print' but print only writes to
> stdout.
> Is there a simple way to achieve this result?
> 
> Thanks
> 
> --
> View this message in context: http://www.nabble.com/print%28%29-to-
> file--tp24397445p24397445.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-
> guide.html
> and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list