[R] R command history -- can it be like Matlab's?

Peter Dalgaard p.dalgaard at biostat.ku.dk
Sun Aug 3 12:26:48 CEST 2008


>> Not quite true that you can't type anything. What happens (for me) is 
>> that you are still in reverse-i-search, so you can get this effect 
>> from "^R l ^C d".
>>
>>  >
>> (reverse-i-search)`l': ls()
>> (reverse-i-search)`l': ls()
>>  >
>> (reverse-i-search)`l': ls()
>> (reverse-i-search)`ld': levels(ftpain3) <- 
>> list(none="none",intermediate=c("mild","medium"),severe="severe")
>>
>> It snaps out of it if you press ^C twice.
>>
>
> If try typing after a ctrl-C in reverse search mode , nothing 
> displays, and the console beep sounds. It doesn't matter how many 
> times I press ctrl-C, the same happens. 
I think this depends on what is in your history. At least typing 's' 
should do something if you had an 'ls()' previously.

> The only way out of it is to press either enter (which shows the 
> previously highlighted command ls and then runs it) or to use the up 
> key, and then ctrl-C.
Now that is actually true for me too. I must have hit "up" after the 2nd 
^C.

>
> I'm using Ubuntu Hardy.
>
And I Fedora 9, but I'm pretty sure this is generic to systems that use 
libreadline.


-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)              FAX: (+45) 35327907



More information about the R-help mailing list