[R] get command history?

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Thu Jul 11 19:25:25 CEST 2002


Eric Evans <eje4 at cornell.edu> writes:

> Hello,
> 
> We are using R 1.4.1 on Solaris 8.  The director of our lab says that
> it should be possible, when using R interactively, to repeat your
> previous command by pressing the up-arrow key (similar to the command
> history feature in the tc shell).  I have not been able to find any
> mention of this command history feature in any of the R documentation,
> but the lab director is adamant that this is a feature of R, because
> she has seen it work this way at another lab.
> 
> Does anyone know how to configure R so as to enable the automatic
> retrieval of a previous command by using the up-arrow key?

R needs to be built with the readline library (in a relatively recent
version). This needs to be installed first. If you are lazy just get it
prepackaged from www.sunfreeware.com.

(Contrary to my initial belief, this is actually not in the FAQ...)
-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list