Beyond sink() - capturing messages to file and stdout [🇷 for BE/BA]

posted by ElMaestro  – Denmark, 2017-09-02 01:23 (2861 d 20:21 ago) – Posting: # 17760
Views: 6,571

Hi all,

I would like to capture all messages from R (optionally all R input and output) to a file while at the same time having them on stdout as usual.
The sink() function can do either, but apparently (??) not both simultaneously which is what I'd like to use. I have no idea where to start, actually. Note: This involves shelling R under windows so stdout is stdout whether or not it is captured via a pipe into a GUI.
Alternatively, if there were a method assiciated with q() or quit() which would upon termination save all stdout info (messages+input+output; what you see on a console when you interact in e.g. R GUI or R Studio) to a txt-file post hoc then that would be equally good.

Tried google and TFM :PCchaos: Any idea how to do this?

Many thanks and a good weekend to all.

Pass or fail!
ElMaestro

Complete thread:

UA Flag
Activity
 Admin contact
23,426 posts in 4,929 threads, 1,681 registered users;
39 visitors (0 registered, 39 guests [including 28 identified bots]).
Forum time: 21:44 CEST (Europe/Vienna)

You can do one of two things; just shut up,
which is something I don’t find easy,
or learn an awful lot very fast,
which is what I tried to do.    Jane Fonda

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz
HTML5