search for: cel_norm_expm

Displaying 1 result from an estimated 1 matches for "cel_norm_expm".

2008 Jun 19
1
Appending diagnostic information to all lines sent to stdout and stderr
...using sink() I would like to append extra information such as "date", "memory usage" etc to every line of output that goes to stdout or stderr. For example > cat("hello \n") should give output that looks something like: "hello --- Thu Jun 19 18:39:15 2008 | cel_norm_expm | 389.6 Mb used |" instead of just: "hello" I don't want to replace functions like "print", "cat", "stop" and "warning" with my own special functions. Instead, I want to somehow catch the messages that these functions return and alter them...