I have not tired sink yet. I was asking for best processes by soliciting
input from others who have succeeded in this effort before. My question
is more conceptual in nature, a research point, to learn more about the
strengths and weaknesses of options.
*Stephen Dawson, DSL*
/Executive Strategy Consultant/
Business & Technology
+1 (865) 804-3454
http://www.shdawson.com <http://www.shdawson.com>
On 12/23/21 10:54 AM, Bert Gunter wrote:
?sink explicitly says:
"sink diverts R output to a connection (and stops such diversions)"
Is this not exactly what you requested? If not, why not? Have you
tried it to see?
Bert Gunter
On Thu, Dec 23, 2021 at 5:28 AM Stephen H. Dawson, DSL via R-help
<r-help@r-project.org> wrote:
Nice! Thanks for the reply.
I will research over the next few days.
https://www.ssc.wisc.edu/~hemken/Rworkshops/interface/savingoutput.html
How about the sink() and capture.output() functions? Have you ever used
them?
*Stephen Dawson, DSL*
/Executive Strategy Consultant/
Business & Technology
+1 (865) 804-3454
http://www.shdawson.com <http://www.shdawson.com>
On 12/23/21 6:44 AM, Rasmus Liland wrote:
Dear Stephen,
Maybe running R in batch mode is what
you're after? E.g. running
R CMD BATCH ./process/script-name.r
creates ./process/script-name.Rout (or
./process/script-name.rout ?) with
output of R commands and inline output,
I think stderr (maybe others? Not only
stdout like tee ...
https://en.wikipedia.org/wiki/Standard_streams )
Note, the batch output is overwritten,
as opposed to being appended to (the tee
-a flag) the next time you run that line
again ...
Best,
Rasmus
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.
______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.