Skip to content
Back to formatted view

Raw Message

Message-ID: <B37C0A15B8FB3C468B5BC7EBC7DA14CC63570D487E@LP-EXMBVS10.CO.IHC.COM>
Date: 2011-11-05T18:01:53Z
From: Greg Snow
Subject: Export to .txt
In-Reply-To: <1320185704350-3965699.post@n4.nabble.com>

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.

-----Original Message-----
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

Hi,

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...
option? 

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
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.