Skip to content
Back to formatted view

Raw Message

Message-ID: <CAN9eD7moge1c-yFVgNEpD6rfXOqtTxb73e8_ZUtjriZwrUCyJA@mail.gmail.com>
Date: 2022-03-23T20:46:16Z
From: Nevil Amos
Subject: write console ouptut to file AND view in console

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]]