Command history in R

前端 未结 6 559
小鲜肉
小鲜肉 2021-02-06 23:31

Is there any IDE -from the ones supporting R-, that gives access to the command history (at least to the current session\'s commands)? Or is there a way to get a (character or e

相关标签:
6条回答
  • 2021-02-07 00:07

    The command history() will recall the last 25 used commands, whereas history(max.show=Inf)will get back all previous ones. If you are using RStudio on top of your R distro, CTRL + UP will give you the list of all previous commands.

    0 讨论(0)
  • 2021-02-07 00:09
    history(Inf)
    

    opens a window similar to that in MATLAB.

    0 讨论(0)
  • 2021-02-07 00:12
    savehistory('file')
    myhistory <- scan('file','character')
    

    Might do the trick.

    0 讨论(0)
  • 2021-02-07 00:20

    I would highly recommend to use Emacs with ESS (Emacs speaks Statistic)

    0 讨论(0)
  • 2021-02-07 00:23

    Eclipse with Stat-ET plugin will get you command history window and object browser.

    0 讨论(0)
  • 2021-02-07 00:23

    The OS X GUI for R has a very nice command history mechanism built in. It works well with multi-line commands (e.g. long function definitions), and you can browse through the history in a pane on the side of the window.

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