How do I log an R session to a file?

前端 未结 4 1897
日久生厌
日久生厌 2020-12-17 09:04

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

4条回答
  •  春和景丽
    2020-12-17 09:46

    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).

提交回复
热议问题