1

Is it possible to send sink() output to multiple files?

I would like it to do the following:

sink("log1.txt", append=T)
sink("log2.txt")

print("output text")

and have the "output text" appear in both files.

Currently, it only appears to write to log2.txt.

Laurence_jj
  • 646
  • 1
  • 10
  • 23

0 Answers0