title: How do I log an R session to a file?
body: <p>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 similar to the <code>log using</code> command in Stata.</p>