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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Peter Dalgaard BSA
2002-Jul-12 13:21 UTC
[R] Another question about getting command history
Eric Evans <eje4 at cornell.edu> writes:> 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....If you put it in a standard location like /usr/local/lib, then it should be picked up correctly by the configure step. Notice that you need to rerun configure (and possibly remove config.cache -- I forget whether that is still necessary). If that doesn't help, then you likely want to read doc/html/R-admin.html in the sources. -- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._