Re: [Rd] How to compile R with command completion?

2009-09-30 Thread Peng Yu
I didn't change anything except --prefix when I compile readline. Here is my $LD_LIBRARY_PATH which has the directory where libreadline.so is in. I also copied 'conftest.c' to a temp dir and compiled it with -lreadline and -lcurses (this is manual testing, not using configure). The problem of "conf

Re: [Rd] How to compile R with command completion?

2009-09-30 Thread Simon Urbanek
Peng, as you can see there is no -lreadline so I'd look further up in config.log to see why it's failing -- do you have LD_LIBRARY_PATH setup to match your custom location of libs? (Also I notice you are building x86_64 yet the readline you are showing is in /lib and not in /lib64 -- did

Re: [Rd] buglet in is.na?

2009-09-30 Thread Duncan Murdoch
On 9/30/2009 4:29 PM, Nicholas Lewin-Koh wrote: Hmm, Well the error message is clear, perhaps in the docs: x a array, matrix, list or data.frame But that misses the usual case, where x is a vector. I realize that this is minor, but is the warning necessary? f is a function not an NA, so FALS

Re: [Rd] How to compile R with command completion?

2009-09-30 Thread Peng Yu
On Wed, Sep 30, 2009 at 9:58 AM, Simon Urbanek wrote: > > On Sep 30, 2009, at 10:13 , Peng Yu wrote: > >> 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_

Re: [Rd] buglet in is.na?

2009-09-30 Thread Nicholas Lewin-Koh
Hmm, Well the error message is clear, perhaps in the docs: x a array, matrix, list or data.frame I realize that this is minor, but is the warning necessary? f is a function not an NA, so FALSE, as would anything else that is not an NA. Though this may just be bad programming practice on my part,

Re: [Rd] unable to load shared library (Symbol not found: _PQbackendPID)

2009-09-30 Thread Neil Tiffin
On Sep 29, 2009, at 8:21 PM, Dirk Eddelbuettel wrote: > Jeff, > > On 29 September 2009 at 17:50, Jeff Hamann wrote: > | I can't get the RPostgreSQL library to load on OSX and have no idea > | where it's going wrong... > | > | > library( RPostgreSQL ) > | Error in dyn.load(file, DLLpath = DLLpath,

Re: [Rd] buglet in is.na?

2009-09-30 Thread Peter Dalgaard
Nicholas Lewin-Koh wrote: Hi the following example I think demonstrates the inconsistency f<-function(x) x length(f) [1] 1 is.na(f) [1] FALSE Warning message: In is.na(f) : is.na() applied to non-(list or vector) of type 'closure' The documentation states: Arguments x an R object to be

Re: [Rd] buglet in is.na?

2009-09-30 Thread Duncan Murdoch
On 9/30/2009 2:29 PM, Nicholas Lewin-Koh wrote: Hi the following example I think demonstrates the inconsistency f<-function(x) x length(f) [1] 1 is.na(f) [1] FALSE Warning message: In is.na(f) : is.na() applied to non-(list or vector) of type 'closure' As the error message says, closures ar

[Rd] buglet in is.na?

2009-09-30 Thread Nicholas Lewin-Koh
Hi the following example I think demonstrates the inconsistency > f<-function(x) x > length(f) [1] 1 > is.na(f) [1] FALSE Warning message: In is.na(f) : is.na() applied to non-(list or vector) of type 'closure' The documentation states: Arguments x an R object to be tested. value a suitabl

Re: [Rd] Installation problem from R 2.8.x

2009-09-30 Thread Matias Silva
Hi, this is correct. I had to set the TMPDIR and also set the JAVA_HOME to the root of the JDK Java directory and not the JRE for the packages that depend on Java... [r...@localhost ~]# export TMPDIR=/var/tmp [r...@localhost ~]# export JAVA_HOME=/usr/java/latest I'M running on a CentOS (RHEL)

Re: [Rd] Installation problem from R 2.8.x

2009-09-30 Thread William Dunlap
In September 2009 Matias Silva reported a execution permission problem during a package installation (look in the r-devel archives for ' [Rd] Installing rJava RJDBC bad interpreter: Permission denied'). It was due to the fstab file marking /tmp as noexec, hence nothing in /tmp was executable, regar

Re: [Rd] Installation problem from R 2.8.x

2009-09-30 Thread Uwe Ligges
What you call a bug in R has never been reported since R-2.8.0 was recent. Hence I guess it is a permission issue on your system. Or do you think nobody else tried to install a package during the last 12 months? Uwe Ligges zong-pei@imm.ox.ac.uk wrote: Dear Developers, Since 2.8, R insta

[Rd] Installation problem from R 2.8.x

2009-09-30 Thread zong-pei . han
Dear Developers, Since 2.8, R installation has got a bug in it such that if a package has a "configure" file then it cannot be installed without modification. For example: * Installing *source* package 'foreign' ... ERROR: 'configure' exists but is not executable -- see the 'R Installation and

Re: [Rd] How to compile R with command completion?

2009-09-30 Thread Simon Urbanek
On Sep 30, 2009, at 10:13 , Peng Yu wrote: 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? Maybe your readline is too old? Ma

Re: [Rd] R 2.9.2 crashes when sorting latin1-encoded strings

2009-09-30 Thread Simon Urbanek
Stefan, On Sep 30, 2009, at 5:11 , Stefan Evert wrote: Hi everyone! I think I stumbled over a bug in the latest R 2.9.2 patched for OS X: R version 2.9.2 Patched (2009-09-24 r49861) i386-apple-darwin9.8.0 When I try to sort latin1-encoded character vectors, R sometimes crashes with a se

[Rd] How to compile R with command completion?

2009-09-30 Thread Peng Yu
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 readl

Re: [Rd] Problems connecting to httpd help server with some browsers

2009-09-30 Thread Simon Urbanek
Thanks, Jeff, good catch. Now committed. Simon On Sep 29, 2009, at 18:27 , Jeff Horner wrote: Simon Urbanek wrote: [...] I don't have konqueror at hand, so I have tested and fixed the lynx case (lynx is acting as an HTTP/1.0 client and expects non- persistent connection). With some luck the

[Rd] R 2.9.2 crashes when sorting latin1-encoded strings

2009-09-30 Thread Stefan Evert
Hi everyone! I think I stumbled over a bug in the latest R 2.9.2 patched for OS X: R version 2.9.2 Patched (2009-09-24 r49861) i386-apple-darwin9.8.0 When I try to sort latin1-encoded character vectors, R sometimes crashes with a segmentation fault. I'm running OS X 10.5.8 and have obse

Re: [Rd] How do I access class slots from C?

2009-09-30 Thread Romain Francois
On 09/30/2009 09:51 AM, Abhijit Bera wrote: Hi Romain I got what ur saying. Good idea. First I convert the data into a timeseries and return object using C, then I pass it onto an R function which I have written, I call the R function from my C code, it evaluates and then I process the values re

Re: [Rd] How do I access class slots from C?

2009-09-30 Thread Romain Francois
On 09/30/2009 09:45 AM, Abhijit Bera wrote: Hi I'm pulling financial datasets from a DB, converting it to a timeseries object then creating a returns object out of it. Right, so the data is in the database. I plan to embed R into an application, which is why I'm taking this route of using C.

Re: [Rd] How do I access class slots from C?

2009-09-30 Thread Abhijit Bera
Hi Romain I got what ur saying. Good idea. First I convert the data into a timeseries and return object using C, then I pass it onto an R function which I have written, I call the R function from my C code, it evaluates and then I process the values returned by it in my C code. Much simpler that w

Re: [Rd] How do I access class slots from C?

2009-09-30 Thread Abhijit Bera
Hi I'm pulling financial datasets from a DB, converting it to a timeseries object then creating a returns object out of it. I plan to embed R into an application, which is why I'm taking this route of using C. Regards Abhijit On Wed, Sep 30, 2009 at 12:07 PM, Romain Francois < romain.franc...@

Re: [Rd] Problems connecting to httpd help server with some browsers

2009-09-30 Thread Thomas Friedrichsmeier
On Wednesday 30 September 2009, Jeff Horner wrote: > Simon Urbanek wrote: > [...] > > > I don't have konqueror at hand, so I have tested and fixed the lynx case > > (lynx is acting as an HTTP/1.0 client and expects non-persistent > > connection). With some luck the fix may solve the konqueror issu

Re: [Rd] How do I access class slots from C?

2009-09-30 Thread Romain Francois
On 09/30/2009 08:51 AM, Abhijit Bera wrote: Hi Thanks all of you for your suggestions. I will put up my code shortly based on your suggestions. I wonder how the parsing and eval will work when most of my data comes in from an external source like a DB? Probably it would be more efficient to m