[R] Another question about getting command history

Don MacQueen macq at llnl.gov
Fri Jul 12 16:54:34 CEST 2002


You don't modify the Makefile. As Peter said, if you install readline 
in standard locations, it should be found automatically.

If, like me, you don't put the readline libraries in a standard 
location, you still don't modify the Makefile. You modify the 
"config.site" file, to tell the R installation scripts where, in 
addition to the standard places, to look.

These features are reasonably well described in the config.site file, 
among others.

For example, I added these lines to my config.site file:

CPPFLAGS="-I/non-standard-location/local/include"
LDFLAGS="-L/non-standard-location/local/lib"

And in the non-standard-location are the readline libraries and include files.

[10]% ls /non-standard-location/local/lib | grep readl
libreadline.a
libreadline.so.4

[11]% ls /non-standard-location/local/include | grep read
readline/

Note also that the above is for R 1.5.1 and may not be exactly 
correct for 1.4.1.

-Don


At 8:57 AM -0400 7/12/02, Eric Evans wrote:
>Hello everyone,
>
>Thanks to the people who so kindly responded to my earlier query 
>about how to get R to retrieve my previous command when I hit the 
>up-arrow key.  Several people pointed out to me that in order to 
>enable this feature I need to re-install R with the GNU readline 
>library.  My question now is:  how do I accomplish this?  Can anyone 
>tell me what changes I need to make to the Makefile in order to get 
>the compile/installation to include the readline library?  Thanks 
>very much....
>
>Eric Evans
>Cornell Phonetics Lab
>
>-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
>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
>_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


-- 
--------------------------------------
Don MacQueen
Environmental Protection Department
Lawrence Livermore National Laboratory
Livermore, CA, USA
--------------------------------------
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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