How do I log an R session to a file?

前端 未结 4 1876
日久生厌
日久生厌 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:57

    Do you know about sink() in base R ?

    There are also some logging packages on CRAN: logging, log4r and possibly more.

    Lastly, Emacs user have ESS and its transcript mode. You can save your session as a log, and in general, the 'work from file and execute from the file' approach builds a (partial, commands-only) log as you work.

提交回复
热议问题