Skip to content
Prev 85741 / 398503 Next

R command line: need intelligent command history recall?

I guess you are using Windows, as you do not tell us.

History search facilities are available in Rterm.exe, and also in readline 
as used in the interface on Unix-alikes.  Many people use Emacs+ESS.  (In 
all cases I think the search mode is slicker than you describe for 
Matlab.) And RGui has another mechanism (read on) that is more suited to a 
GUI.

If you would like a history search in RGui.exe, please contribute the code 
to do so.  R is a volunteer project, and this was deliberately not 
implemented as no Windows user expressed an interest.

I think you will find `the productivity' is in using a higher-level 
language than C.  R does have a line-by-line debugger (called debug, so 
not hard to find).  If you want to set breakpoints etc, see package 
`debug' on CRAN.  And the `Writing R Extensions' manual in the R-devel 
version of R (to become 2.3.0) has a chapter on `Debugging'.

I teach 50 or so people to use R/S a year.  They end up with different 
patterns of working.  Some use script windows all the time, some use 
Emacs+ESS, some use a Linux command line/Rterm.exe.  I believe it is a 
mistake to think that `one size fits all'.
On Sat, 4 Feb 2006, Michael wrote:

            
Try history().  This pops up a window from which you can submit one or 
more command lines (or parts of lines).
Yes.
That is a matter of opinion.  If you want us to accept your opinion, you 
need to give your credentials, and you haven't even told us your name and 
affiliation.