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
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.
history(Inf)
opens a window similar to that in MATLAB.
savehistory('file')
myhistory <- scan('file','character')
Might do the trick.
I would highly recommend to use Emacs with ESS (Emacs speaks Statistic)
Eclipse with Stat-ET plugin will get you command history window and object browser.
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.