Re: [Rcpp-devel] Problem passing Armadillo objects back to R

2011-03-07 Thread Dirk Eddelbuettel
On 8 March 2011 at 14:50, baptiste auguie wrote: | I get the same incorrect results as Günter for both the and | versions. Ack, thanks for the confirmation. Maybe Romain has a chance to take a look as I do not have a Mac handy. Dirk -- Dirk Eddelbuettel | [email protected] | http://dirk.edd

Re: [Rcpp-devel] Problem passing Armadillo objects back to R

2011-03-07 Thread baptiste auguie
Hi, I get the same incorrect results as Günter for both the and versions. Cheers, baptiste sessionInfo() R version 2.12.2 Patched (2011-03-02 r54645) Platform: i386-apple-darwin9.8.0/i386 (32-bit) locale: [1] C attached base packages: [1] stats graphics grDevices utils datasets gr

Re: [Rcpp-devel] Problem passing Armadillo objects back to R

2011-03-07 Thread Dirk Eddelbuettel
Hi Guenter, On 7 March 2011 at 16:03, "Günter J. Hitsch" wrote: | | I'm new to Rcpp and RcppArmadillo---so far I like it a lot! Thanks to the | developers for their good work. | | I run into a peculiar kind of problem when I try to pass a "large" Armadillo | object back to R. Here's some code

[Rcpp-devel] Problem passing Armadillo objects back to R

2011-03-07 Thread Günter J. Hitsch
I'm new to Rcpp and RcppArmadillo---so far I like it a lot! Thanks to the developers for their good work. I run into a peculiar kind of problem when I try to pass a "large" Armadillo object back to R. Here's some code to replicate the problem in stylized form: extern "C" SEXP testFun(SEXP L

Re: [Rcpp-devel] Rcpp-devel Digest, Vol 17, Issue 5

2011-03-07 Thread schattenpflanze
It might not hurt to provide a link to your project, if possible. Non-trivial examples of Rcpp use should be of broad interest here. Currently, the project is only used internally at my department and still under heavy construction. In particular, I am just about to start working on the R-interf

Re: [Rcpp-devel] Persistent memory allocation in C++

2011-03-07 Thread schattenpflanze
Thank you very much for your help! Hope this helps, Dirk Yes, that was actually all I needed to know. I can now confidently start to experiment with Rcpp :-). Best regards, Peter ___ Rcpp-devel mailing list [email protected] htt

[Rcpp-devel] R.e. Persistent memory allocation in C++

2011-03-07 Thread Christian Gunning
(i got notice of a bounce from [email protected], apologies if this posts twice) > I am facing the task of writing an R interface to a rather large C++ > library. It might not hurt to provide a link to your project, if possible. Non-trivial examples of Rcpp use should be of

Re: [Rcpp-devel] Persistent memory allocation in C++

2011-03-07 Thread Dirk Eddelbuettel
Hi Peter, On 7 March 2011 at 09:58, [email protected] wrote: | I am facing the task of writing an R interface to a rather large C++ | library. The library does not make use of the R API. Rcpp seems to be a | good idea, but I have the following, general questions concerning R and | C++ i

Re: [Rcpp-devel] Rcpp-devel Digest, Vol 17, Issue 5

2011-03-07 Thread Christian Gunning
> I am facing the task of writing an R interface to a rather large C++ > library. It might not hurt to provide a link to your project, if possible. Non-trivial examples of Rcpp use should be of broad interest here. > The library does not make use of the R API. I don't see how that hurts. Do you

[Rcpp-devel] Persistent memory allocation in C++

2011-03-07 Thread schattenpflanze
Hello, I am facing the task of writing an R interface to a rather large C++ library. The library does not make use of the R API. Rcpp seems to be a good idea, but I have the following, general questions concerning R and C++ integration: 1. In the C++ library, new objects are allocated on the