On Apr 3, 2009, at 18:40, "Ping-Hsun Hsieh" <[email protected]> wrote:
Hi Simon,
Thanks for the reply.
I did complie my own version of R in my home dir of the Mac since I
do not have the root privilege to install anything involved writing
actions on /etc/ , /bin/, or /lib/.
I followed the instruction of the following two web-pages
http://r.research.att.com/building.html and
http://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html bullet 2.1.3
Here is my configuration and make:
## configure
$./configure SHELL='/bin/bash' \
r_arch=x86_64 \
CC="gcc -arch x86_64 -std=gnu99" \
CXX="g++ -arch x86_64" \
OBJC="gcc -arch x86_64" \
F77="gfortran -arch x86_64" \
FC="gfortran -arch x86_64" \
--prefix=$HOME \
--with-system-zlib \
--with-blas='-framework vecLib' --with-lapack
## make
$make -j4 && \
make check && \
make CPPFLAGS=-DNEED_EXTERN_PC
The above CPPFLAGS are for readline, not for R. The compilation and
installation of readline must be done *before* you configure R (see
the FAQ).
Cheers,
Simon
## install
$make install
I thought I have complied/configured readline. Does anything look
not right above?
By the way, the Mac's OS is Leopard.
And I forgot to mention that when I type the tab in R console only,
it does come up "./" followed by the sub-directories under the
current directory.
Thanks,
PingHsun
-----Original Message-----
From: Simon Urbanek [mailto:[email protected]]
Sent: Friday, April 03, 2009 2:07 PM
To: Ping-Hsun Hsieh
Cc: [email protected]
Subject: Re: [R-SIG-Mac] tab completion on R terminal (Mac)
On Apr 3, 2009, at 16:40 , Ping-Hsun Hsieh wrote:
Bear R-experts,
Sorry if my question is too trivial.
I am using ssh to access and run R on a 64-bit Mac machines from my
windows machine.
But I find that the tab-completion does not work when I tried.
I suspect that you have compiled your own version of R and you did not
use readline. I would suggest using the official Leopard binary from
http://r.research.att.com/
which uses readline and supports code completion.
Cheers,
Simon
For example, on my windows machine, I can type tab to get a full
name of a specific object.
ls()
[1] data1 func1 data3
fun ##<tab>
func1 ##it completes the name of the object automatically
It does not work on the Mac machine when I use R as a terminal tool.
I checked the following R website, do not have any clue though.
5.5 What does TAB completion do?
http://cran.r-project.org/bin/windows/base/rw-FAQ.html#What-does-TAB-completion-do_003f
Any suggestion and comment are welcome and appreciated!
Best Regards,
PingHsun
My rc.status()
$linebuffer
[1] ""
$options
$options$package.suffix
[1] "::"
$options$funarg.suffix
[1] "="
$options$function.suffix
[1] "("
$end
[1] 1
$settings
$settings$ops
[1] TRUE
$settings$ns
[1] TRUE
$settings$args
[1] TRUE
$settings$func
[1] FALSE
$settings$ipck
[1] FALSE
$settings$S3
[1] TRUE
$settings$data
[1] TRUE
$settings$help
[1] TRUE
$settings$argdb
[1] TRUE
$settings$files
[1] FALSE
#########################
sessionInfo()
R version 2.8.1 (2008-12-22)
i386-apple-darwin9.6.0
locale:
C
attached base packages:
[1] splines tools stats graphics grDevices utils
datasets
[8] methods base
other attached packages:
[1] oligo_1.6.0 oligoClasses_1.4.0 affxparser_1.14.2
[4] AnnotationDbi_1.4.3 preprocessCore_1.4.0 RSQLite_0.7-1
[7] DBI_0.2-4 Biobase_2.2.2
_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac
_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac