[R] Export to .txt
Greg.Snow at imail.org
Sat Nov 5 19:01:53 CET 2011
Look at the txtStart function in the TeachingDemos package. It works like sink but also includes commands as well as output. Though I have never tried it with browser() (and it does not always include the results of errors).
Another option in to use some type of editor that links with R such as emacs/ESS or tinn-R (or other) and then save the entire transcript.
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of stat.kk
Sent: Tuesday, November 01, 2011 4:15 PM
To: r-help at r-project.org
Subject: [R] Export to .txt
I would like to export all my workspace (even with the evaluation of
commands) to the text file. I know about the sink() function but it doesnt
work as I would like. My R-function looks like this: there are instructions
for user displayed by cat() command and browser() commands for fulfilling
them. While using the sink() command the instructions dont display :(
Can anyone help me with a equivalent command to File - Save to file...
Thank you very much.
View this message in context: http://r.789695.n4.nabble.com/Export-to-txt-tp3965699p3965699.html
Sent from the R help mailing list archive at Nabble.com.
R-help at r-project.org mailing list
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