Other than through redirection, which captures an entire session, is there a way to start and stop logging during an R session? To clarify, I am looking for something simil
There's savehistory(file) which will write the entire history as plaintext, or, if you're trying to log output, use sink(file, split = TRUE).
savehistory(file)
sink(file, split = TRUE)