From pengyu.ut at gmail.com  Wed Sep 30 16:13:28 2009
From: pengyu.ut at gmail.com (Peng Yu)
Date: Wed, 30 Sep 2009 09:13:28 -0500
Subject: [Rd] How to compile R with command completion?
In-Reply-To: <4AC361CA.3010206@fhcrc.org>
References: <366c6f340909291134w1b253caeje00a3054ef35e619@mail.gmail.com>
	<4AC27267.2060007@gmail.com>
	<366c6f340909291946u545c024fyf0ac54e002e3927@mail.gmail.com>
	<4AC2D2E8.8040208@fhcrc.org>
	<366c6f340909300526s3470a4eep63c92eb67f24270b@mail.gmail.com>
	<4AC361CA.3010206@fhcrc.org>
Message-ID: <366c6f340909300713v5354d451p26cd8e86ff678e@mail.gmail.com>

I compiled R-2.9.2 from source on Cent OS. But the compile R program
does not support command completion.

I get the following configure output that is related to readline. Why
'rl_completion_matches' doesn't exist? How should I make R support
command completion?

===================
checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking for rl_callback_read_char in -lreadline... no
checking for main in -lncurses... yes
checking for rl_callback_read_char in -lreadline... yes
checking for history_truncate_file... yes
checking whether rl_completion_matches exists and is declared... no


checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking for rl_callback_read_char in -lreadline... no
checking for main in -lncurses... yes
checking for rl_callback_read_char in -lreadline... yes
checking for history_truncate_file... yes
checking whether rl_completion_matches exists and is declared... no
=====================


Here is my sessionInfo() of the compiled R.
=========================
$ R

R version 2.9.2 (2009-08-24)
Copyright (C) 2009 The R Foundation for Statistical Computing
ISBN 3-900051-07-0

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> sessionInfo()
R version 2.9.2 (2009-08-24)
x86_64-unknown-linux-gnu

locale:
LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base



[Rd] How to compile R with command completion?
Peng Yu