[R] How to print to file?

Don MacQueen macq at llnl.gov
Fri Dec 18 21:49:59 CET 2009


Use the online help:

    help.search('file')

and then see:

       base::sink              Send R Output to a File

help.search('print') will get you there also, but not as directly.

The cat() function is good also, as Gray mentioned.

-Don

At 2:12 PM +1800 12/19/09, Peng Yu wrote:
>I don't find a function to print a string to file. Would somebody let
>me know what function I should use?
>
>______________________________________________
>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.


-- 
--------------------------------------
Don MacQueen
Environmental Protection Department
Lawrence Livermore National Laboratory
Livermore, CA, USA
925-423-1062




More information about the R-help mailing list