Reputation: 201
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
Reputation: 24480
Just use the split=TRUE
argument of sink
:
sink(file="myfile",split=TRUE)
Upvotes: 7