I want to use
sdc_log() on a
main.R script which calls several other scripts via
source() in the order I need in my analysis. But the contents from the other R scripts are not logged. How can I log the outputs from the subordinated scripts in the same log file?
First, replace all calls to
Then, create a file connection:
<- file("path/to/my/log", open = "w")file_connection
destination = file_connection in all calls to
sdc_log() on you
Close the file connection via
This vignette will be extended as users have more questions.