maintaining an input / output log in R

后端 未结 5 2071
遇见更好的自我
遇见更好的自我 2020-12-17 23:08

Is there an easy way to have R record all input and output from your R session to disk while you are working with R interactively?

In R.app on M

相关标签:
5条回答
  • 2020-12-17 23:31

    I'm not sure yet how to answer an answer, but there is an updated version of Ranke's vim r-plugin called r-plugin2 available here. It seems more user-friendly and robust than the original.

    0 讨论(0)
  • 2020-12-17 23:41

    Check out the savehistory() command

    0 讨论(0)
  • 2020-12-17 23:49

    Emacs is good, but for those of us with a vi preference there's the vim-r plugin at:

    http://www.uft.uni-bremen.de/chemie/ranke/index.php?page=vim_R_linux

    It works brilliantly and has a tiny memory footprint.

    0 讨论(0)
  • 2020-12-17 23:53

    Greg Snow wrote recently on the R-help list (a very valuable resource, SO R people!):

    "You may also want to look at ?TeachingDemos::txtStart as an alternative to sink, one advantage is that the commands as well as the output can be included. With a little more work you can also include graphical output into a transcript file."

    r-help

    0 讨论(0)
  • 2020-12-17 23:55

    Many of us use ESS / Emacs for this very reason. Saving old sessions with extension '.Rt' even gives you mode-specific commands for re-running parts of your session.

    0 讨论(0)
提交回复
热议问题