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
# copy the log to a text file
sink("./logofcode.txt")
Your R code(s) goes here
you can use a stored R code as well using source()
source("./XS_SPEC_CF.R",echo=T, max.deparse.length=1e3)
sink()