Hi all, In R GUI window, if you use "up" and "down" key, you will be able to recall the previous and next command that has been used and stored in the command history cache. But there is one inconvenience: In Matlab, you can type the first a few characters of the command that you previously used, and then press ?up" key, you will be able to get to that previous command very fast, no matter how long ago it has been used... In R GUI, there is no such functionality. Any thoughts on making R work my productivity? ---------------------- Also where do I find good debugger for R? Thanks! -- View this message in context: http://www.nabble.com/R-command-history----can-it-be-like-Matlab%27s--tp18719530p18719530.html Sent from the R help mailing list archive at Nabble.com.
A patch to do this was posted on 2007-09-29 by Glenn Davis. Some people not addicted to Matlab find the behaviour very inconvenient and prefer the getline/readline behaviour (triggered by ^R/^S) of Rterm and R on Unixen. On Tue, 29 Jul 2008, losemind wrote:> > Hi all, > > In R GUI window, if you use "up" and "down" key, you will be able to recall > the previous and next command that has been used and stored in the command > history cache. > > But there is one inconvenience:Or an inconvenience of Matlab not shared by R, depending on your preferences.> In Matlab, you can type the first a few characters of the command that you > previously used, > > and then press ?up" key, you will be able to get to that previous command > very fast, > > no matter how long ago it has been used... > > In R GUI, there is no such functionality. > > Any thoughts on making R work my productivity? > > ---------------------- > > Also where do I find good debugger for R? > > Thanks! > -- > View this message in context: http://www.nabble.com/R-command-history----can-it-be-like-Matlab%27s--tp18719530p18719530.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
>>>>> "l" == losemind <comtech.usa at gmail.com> >>>>> on Tue, 29 Jul 2008 12:23:36 -0700 (PDT) writes:l> Hi all, l> In R GUI window, if you use "up" and "down" key, you will be able to recall l> the previous and next command that has been used and stored in the command l> history cache. l> But there is one inconvenience: as Prof. Ripley said already, this is only an inconvenience for those who are used aka "addicted" to such behavior.... l> In Matlab, you can type the first a few characters of the command that you l> previously used, l> and then press ?up" key, you will be able to get to that previous command l> very fast, l> no matter how long ago it has been used... "no matter how long"? ... as of "ten years ago" ? ;-) ;-) Anyway --- as nobody said so till now, and the vi-aficionados have already raised the flag --- I'd like to remark that the behaviour you desire has been the default behavior in ESS (The "Emacs Speaks Statistics" plugin for Emacs, http://ess.r-project.org/ ) for many months now. l> In R GUI, there is no such functionality. l> Any thoughts on making R work my productivity? leaving R GUI for ESS :-) :-) For Windows, there's a very nice package of Emacs, bundled with ESS (and AucTeX, *the* recommended LaTeX plugin for Emacs) thanks to Vincent Goulet, at http://vgoulet.act.ulaval.ca/en/ressources/emacs/ Martin Maechler, ETH Zurich l> ---------------------- l> Also where do I find good debugger for R? l> Thanks!