Beyond sink() - capturing messages to file and stdout [🇷 for BE/BA]
Hi ElMaestro,
the meaning of 'stdout'? outputs on the console? If yes, you can try
I am not quite sure if I answer your question correctly or not.
the meaning of 'stdout'? outputs on the console? If yes, you can try
zz<- file("output.txt",open="wt")
sink(zz,split=TRUE) ### this will send output to the file and on the console simultaneously
...
sink(zz,split=FALSE) ### this will send all outputs to the file only, but will not be on the console;default for sink(), same as sink(zz).
sink() ### this will temporarily stop sending output to the file; console output is still on.
sink(zz,split=TRUE) ### re-activate sink() again;
close(zz) ### close the output; use it before q(); otherwise, the output text file may not be complete.
I am not quite sure if I answer your question correctly or not.
—
All the best,
-- Yung-jin Lee
bear v2.9.2:- created by Hsin-ya Lee & Yung-jin Lee
Kaohsiung, Taiwan https://www.pkpd168.com/bear
Download link (updated) -> here
All the best,
-- Yung-jin Lee
bear v2.9.2:- created by Hsin-ya Lee & Yung-jin Lee
Kaohsiung, Taiwan https://www.pkpd168.com/bear
Download link (updated) -> here
Complete thread:
- Beyond sink() - capturing messages to file and stdout ElMaestro 2017-09-01 23:23 [🇷 for BE/BA]
- Beyond sink() - capturing messages to file and stdoutyjlee168 2017-09-02 05:20
- Beyond sink() ElMaestro 2017-09-02 08:10
- TeachingDemos? mittyri 2017-09-02 12:51
- Beyond sink() ElMaestro 2017-09-02 08:10
- Beyond sink() - capturing messages to file and stdoutyjlee168 2017-09-02 05:20