Skip to content

problem with "history"

8 messages · Alberto Murta, Martin Maechler, Thomas J Vogels +2 more

#
Dear all

After upgrading my OS to SuSE Linux 7.1 (intel) and re-compiling R
1.3.0, I noticed that the arrow keys are not working anymore. Not even
emacs-type commands (such as Ctrl-a or Ctrl-e) work anymore. However
"readline" and the arrow keys seem to be working well outside R. Can
anyone tell me what may be wrong?

Alberto
#
Alberto> After upgrading my OS to SuSE Linux 7.1 (intel) and
    Alberto> re-compiling R 1.3.0, I noticed that the arrow keys are not
    Alberto> working anymore. Not even emacs-type commands (such as Ctrl-a
    Alberto> or Ctrl-e) work anymore. However "readline" and the arrow keys
    Alberto> seem to be working well outside R. Can anyone tell me what may
    Alberto> be wrong?

Instead of "re-compiling" you must "re-configure from scratch" after an OS
upgrade.
I.e.,
	rm config.cache
	{path/}configure
	make
etc

An even more foolproof (but considerably slower) version of the above would
be to throw away your 1.3.0 installation, and re configure from scratch.
This means that if your build directory is = source, you trash everything,
unpack the tar file again, etc.

Martin Maechler <maechler at stat.math.ethz.ch>	http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum  LEO D10	Leonhardstr. 27
ETH (Federal Inst. Technology)	8092 Zurich	SWITZERLAND
phone: x-41-1-632-3408		fax: ...-1228			<><
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Martin Maechler wrote:
I tried the latter option and it didn't solve the problem. I really
can't understand what can be the problem. Anyway, I finally managed to
put R to work with the arrow keys by installing the rpm package made for
SuSE Linux 7.2 (from CRAN) instead of building from source.

Thank you very much for your support

Alberto
#
Alberto Murta <amurta at ipimar.pt> writes:
Sounds like you may have lost the header files for readline in the
upgrade. Look for an RPM named readline-devel or so.

Otherwise, check the output from configure to see what it has to say
about readline. (Remove config.cache first).
#
Hi, having run into this problem (R's configure not picking up my readline
lib) myself a couple times, I'm wondering whether the 'readline feature'
could be added to the capabilities so that I could do:
just like I can do today:
tcltk
 TRUE

?
Regards,
  -tom

--
Email: vogels at cmu.edu


-----Original Message-----
From: owner-r-help at stat.math.ethz.ch
[mailto:owner-r-help at stat.math.ethz.ch]On Behalf Of Alberto Murta
Sent: Friday, July 27, 2001 11:36 AM
To: Martin Maechler
Cc: R-help
Subject: Re: [R] problem with "history"
Martin Maechler wrote:
would
I tried the latter option and it didn't solve the problem. I really
can't understand what can be the problem. Anyway, I finally managed to
put R to work with the arrow keys by installing the rpm package made for
SuSE Linux 7.2 (from CRAN) instead of building from source.

Thank you very much for your support

Alberto



--
                       Alberto G. Murta
       IPIMAR - Institute of Fisheries and Sea Research
        Avenida de Brasilia, 1449-006 Lisboa, Portugal
Tel: +351 213027062; Fax: +351 213015849; http://www.ipimar.pt
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
On Sat, 28 Jul 2001, Thomas J Vogels wrote:

            
It could, but it's a Unix-specific feature, and the idea of
capabilities() was to have a programatic way to use certain features
if they existed (or not if they did not), so this was not an obvious one.

Perhaps a neutral name like "command-line editing"?  Any ideas for a
shorter name?
#
(from below:)
You could make it really short, like "cli":

     cli: is the command line interactive (with editing and
          history mechanisms)?

or

     cli: is the command line interactive with (emacs- or vi-
          style) editing and command history?

Regards,
  -tom

--
Email: vogels at cmu.edu
Phone: 412.855.2096


-----Original Message-----
From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
Sent: Saturday, July 28, 2001 11:42 AM
To: vogels at cmu.edu
Cc: Alberto Murta; Martin Maechler; R-help
Subject: RE: [R] problem with "history"
On Sat, 28 Jul 2001, Thomas J Vogels wrote:

            
It could, but it's a Unix-specific feature, and the idea of
capabilities() was to have a programatic way to use certain features
if they existed (or not if they did not), so this was not an obvious one.

Perhaps a neutral name like "command-line editing"?  Any ideas for a
shorter name?

--
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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
"Thomas J Vogels" <tov at ece.cmu.edu> writes:
Um, cli is "command line interface" (opposite of GUI). "cledit"?