[R] Command History

Pierre-Andre Cornillon pac at Uhb.Fr
Tue Jan 21 11:49:02 CET 2003


I had the same problem with Solaris 7 and 8. I just
re-compile readline (I used the readline-4.2) and recompile R
and no problem afterwards. I think it's better
not using the sunfreeware package of readline, it doesn't works properly
(1 year ago).

Good luck

a/ to have static or shared library for readline 4.2 you have
2 different make steps (it is written in README somewhere and not
in the INSTALL file)
make intall
make shared
make install-shared
b/ I had some problem with bash2.05 and readline4.3 (on sparc-linux) so
may be readline4.3 is too new ?

On Mon, 20 Jan 2003, Russell D. Pierce wrote:

> I have compiled R under Solaris 7 (SunOS 5.7) with the readline-4.0
> library linked.  Command line editing appears to work, but I cannot
> access command history.  If I execute several commands in R, then type
> "history()", I get the error message "Error in savehistory(file) : no
> history available to save".  Also, previous command recall (C-p) does
> not seem to work.  I am invoking R directly from a Korn shell prompt.
> Can you help?
> Russ Pierce
> Legerity, Inc.
> Reading, PA

More information about the R-help mailing list