[R] Command line editing.

Thomas Vogels tov at ece.cmu.edu
Wed Sep 5 22:05:38 CEST 2001


Rolf Turner <rolf at math.unb.ca> writes:

> I've looked through the FAQ and can't find anything about
> this.
> 
> I'm working on a Sun machine, running Solaris 2.7.
> 
> I'm a new R-user; have been using Splus for millenia, and finally
> decided it was time I got going with R.  So I downloaded R, installed
> it, fiddled about a bit, and found that command-line editing was
> absent.
> 
> Scrounging through the documentation some more, I saw it to indicate
> that if GNU readline is installed on the system, then R ***does***
> provide command-line editing.  So I got readline and installed it ---
> there seemed to be no problems with that.
> 
> Then I (re) issued the ./configure, make, and make install commands
> for R.

- Make sure to follow Prof. Ripley's advise to remove config.cache .

- Once you fire up the newly built R, you can verify that the readline
  library was picked up correctly using the capabilities function:

R> capabilities("cledit")
cledit 
  TRUE 

- If you are Emacs averse, why do you use ^P instead of Esc k ? :-)

  -tom


> 
> Then I fired up R, typed a few commands, and tried typing <ctrl>-p,
> which according to ``An Introduction to R'' by Venables and Smith
> et al., should take me to the previous command.  Instead, I simply
> got ``^P'' appearing on the screen.  What am I missing?
> 
> (***Please*** don't tell me to use ESS --- (a) I don't want to; I
> am emacs-averse.  (b) I ***did*** try to install ESS, despite (a),
> and could not get that %%^#*#)%'-ing thing to work either!)
> 
> 					cheers,
> 
> 						Rolf Turner
> 						rolf at math.unb.ca

-- 
mailto:tov at ece.cmu.edu (Tom Vogels)   Tel: (412) 268-6638   FAX: -3204
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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