Re: [R] Script Run Output Capturing

2021-12-23 Thread Stephen H. Dawson, DSL via R-help
Thank you, Rasmus. I appreciate the reply. *Stephen Dawson, DSL* /Executive Strategy Consultant/ Business & Technology +1 (865) 804-3454 http://www.shdawson.com On 12/23/21 10:00 AM, Rasmus Liland wrote: sink and capture.output seem useful, but I have not used them.

Re: [R] Script Run Output Capturing

2021-12-23 Thread Stephen H. Dawson, DSL via R-help
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 Strate

Re: [R] Script Run Output Capturing

2021-12-23 Thread Bert Gunter
?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 wrote: > > Nice! Thanks for the reply. > >

Re: [R] Script Run Output Capturing

2021-12-23 Thread Rasmus Liland
sink and capture.output seem useful, but I have not used them. I looked into pipe() a long time ago ... __ 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

Re: [R] Script Run Output Capturing

2021-12-23 Thread Stephen H. Dawson, DSL via R-help
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 & Technolo

Re: [R] Script Run Output Capturing

2021-12-23 Thread Rasmus Liland
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

[R] Script Run Output Capturing

2021-12-23 Thread Stephen H. Dawson, DSL via R-help
Hi, I need to capture the output in a physical file when I run an R script. I would like to capture the output as a TXT file. I am thinking something along the line of the tee command is what I am after, but I am not certain what I am after here. https://en.wikipedia.org/wiki/Tee_(command)