[R] write console ouptut to file AND view in console

nevil amos nev||@@mo@ @end|ng |rom gm@||@com
Wed Mar 23 21:46:16 CET 2022


I know I can write console output to a file:
my_log <- file("my_log.txt")
  sink(my_log, append = TRUE, type = "output")
  sink(my_log, append = TRUE, type = "message")

Is there any way to do this while still having the output display in the
console at the same time

thanks

	[[alternative HTML version deleted]]



More information about the R-help mailing list