Al Guy
Al Guy

Reputation: 201

sink() while simultaneously show ouput in console

How can I redirect output to some txt file but in such a way so that i can see that output simultaneously in console while generating step by step?

Upvotes: 3

Views: 1576

Answers (1)

nicola
nicola

Reputation: 24480

Just use the split=TRUE argument of sink:

sink(file="myfile",split=TRUE)

Upvotes: 7

Related Questions