Re: [Rcpp-devel] Extract a function from a list and create a call

2010-03-22 Thread Romain Francois
Le 22/03/10 23:29, Douglas Bates a écrit : > > On Mon, Mar 22, 2010 at 10:21 AM, Romain Francois > wrote: >> Le 22/03/10 14:14, Douglas Bates a écrit : >>> >>> I think the problem under Linux is extracting fam[0]. The error >>> message to me indicates that even though fam is declared as a >>> Ch

Re: [Rcpp-devel] Extract a function from a list and create a call

2010-03-22 Thread Douglas Bates
On Mon, Mar 22, 2010 at 10:21 AM, Romain Francois wrote: > Le 22/03/10 14:14, Douglas Bates a écrit : >> >> I think the problem under Linux is extracting fam[0].  The error >> message to me indicates that even though fam is declared as a >> CharacterVector the SEXP it contains isn't a STRSXP. > >

[Rcpp-devel] C++ design for least squares solvers

2010-03-22 Thread Douglas Bates
A fundamental operation in the work that I do is to solve least squares problems in various configurations. The simplest case is to solve a least squares problem with a dense model matrix and a numeric response, but there are many other cases based on properties of the model matrices. For the mod

Re: [Rcpp-devel] Extract a function from a list and create a call

2010-03-22 Thread Romain Francois
Le 22/03/10 14:14, Douglas Bates a écrit : > I think the problem under Linux is extracting fam[0]. The error > message to me indicates that even though fam is declared as a > CharacterVector the SEXP it contains isn't a STRSXP. This is not supposed to happen. The constructor of CharacterVector ma

Re: [Rcpp-devel] Extract a function from a list and create a call

2010-03-22 Thread Romain Francois
Le 22/03/10 14:30, Dirk Eddelbuettel a écrit : > > On 22 March 2010 at 08:14, Douglas Bates wrote: > |> And when I run the code on OSX (gcc 4.2), I get : > |> > |>*** caught segfault *** > |> address 0x0, cause 'memory not mapped' > |> > |> Traceback: > |>1: .Call("file10d63af1", PACKAGE

[Rcpp-devel] RInside on Windows anyone?

2010-03-22 Thread Dirk Eddelbuettel
The last RInside release --- version 0.2.1 from January --- worked on Windows. We appear to have made some changes in Rcpp that prevent it working on this platform right now. I tried for a bit to get it back to work but neither static libraries nor dynamic libraries seem to do the trick. If any

Re: [Rcpp-devel] Extract a function from a list and create a call

2010-03-22 Thread Dirk Eddelbuettel
On 22 March 2010 at 08:14, Douglas Bates wrote: | > And when I run the code on OSX (gcc 4.2), I get : | > | >  *** caught segfault *** | > address 0x0, cause 'memory not mapped' | > | > Traceback: | >  1: .Call("file10d63af1", PACKAGE = f, l) | >  2: fx(binomial()) | > aborting ... | > Segmentatio

Re: [Rcpp-devel] Extract a function from a list and create a call

2010-03-22 Thread Douglas Bates
On Mon, Mar 22, 2010 at 3:20 AM, Romain Francois wrote: > Le 22/03/10 03:12, Douglas Bates a écrit : >> >> On Sat, Mar 20, 2010 at 2:53 AM, Romain Francois >>  wrote: >>> >>> Hello, >>> >>> The issue with CharacterVector is that the proxy classes : >>> "string_name_proxy" and "string_proxy" only

Re: [Rcpp-devel] Extract a function from a list and create a call

2010-03-22 Thread Romain Francois
Le 22/03/10 03:12, Douglas Bates a écrit : > On Sat, Mar 20, 2010 at 2:53 AM, Romain Francois > wrote: >> >> Hello, >> >> The issue with CharacterVector is that the proxy classes : >> "string_name_proxy" and "string_proxy" only have implicit conversion to SEXP >> and char* : >> >> operator char*