Re: [Rcpp-devel] Is creating a DataFrame from std::vector-s supposed to work?

2013-05-15 Thread Dirk Eddelbuettel
On 15 May 2013 at 20:23, Ivan Popivanov wrote: | Two versions of the code, see at the end. The first converts my std::vectors to | Rcpp equivalents. The second builds the data frame from the std::vectors. A date.frame is an R list with some special sauce, and it is probably easier to construct t

[Rcpp-devel] Is creating a DataFrame from std::vector-s supposed to work?

2013-05-15 Thread Ivan Popivanov
Two versions of the code, see at the end. The first converts my std::vectors to Rcpp equivalents. The second builds the data frame from the std::vectors. Calling the function containing this code numerous times (hundreds if not thousands) returning the std::vectors directly seems to cause random c

Re: [Rcpp-devel] rcpp-devel Move to Inbox More 1 of 1 Rcpp C++ documentation?

2013-05-15 Thread Dirk Eddelbuettel
Hi Nick, On 15 May 2013 at 16:21, Nick Austin wrote: | My apologies - I have tried searching Google and the CRAN repository for this | information and somehow have come up short.   | | Where can I find the official documentation on objects/functions made available "Code is law." So one way is

[Rcpp-devel] rcpp-devel Move to Inbox More 1 of 1 Rcpp C++ documentation?

2013-05-15 Thread Nick Austin
My apologies - I have tried searching Google and the CRAN repository for this information and somehow have come up short. Where can I find the official documentation on objects/functions made available inside the Rcpp namespace? I'm basically looking for a version of the R documentation http://cra

Re: [Rcpp-devel] Compile Error with Rcpp sugar all

2013-05-15 Thread Dirk Eddelbuettel
On 15 May 2013 at 21:44, Benjamin Ward (ENV) wrote: | Thanks Dirk, my apologies I think I'll keep it to this list for future Rcpp questions. I've updated my SO question now I've done as you suggest with .is_true() but I'll keep this question there from now on, and any new questions in future he

Re: [Rcpp-devel] Compile Error with Rcpp sugar all

2013-05-15 Thread Benjamin Ward (ENV)
Thanks Dirk, my apologies I think I'll keep it to this list for future Rcpp questions. I've updated my SO question now I've done as you suggest with .is_true() but I'll keep this question there from now on, and any new questions in future here for more Rcpp friendly heads! Best, Ben.

Re: [Rcpp-devel] Compile Error with Rcpp sugar all

2013-05-15 Thread Dirk Eddelbuettel
On 15 May 2013 at 05:55, Dirk Eddelbuettel wrote: | | On 15 May 2013 at 08:19, Benjamin Ward (ENV) wrote: | | Hi all, | | | | I'm having problem with some code I hope you can help illuminate: [...] | I saw your post on SO, and the decent vectorised non-Rcpp solution you get | thanks to user flod

Re: [Rcpp-devel] Compile Error with Rcpp sugar all

2013-05-15 Thread Dirk Eddelbuettel
On 15 May 2013 at 08:19, Benjamin Ward (ENV) wrote: | Hi all, | | I'm having problem with some code I hope you can help illuminate: | | I've written some code originally to speed up and R function, but now really | for my own education: | | It's supposed to remove all columns of a matrix contai

[Rcpp-devel] Compile Error with Rcpp sugar all

2013-05-15 Thread Benjamin Ward (ENV)
Hi all, I'm having problem with some code I hope you can help illuminate: I've written some code originally to speed up and R function, but now really for my own education: It's supposed to remove all columns of a matrix containing identical values ( a big one!): #include #include using na

Re: [Rcpp-devel] using Rcpp modules to expose class

2013-05-15 Thread Robin Girard
I'll try to contribute to the gallery.rcpp.org, after next week. R. - Mail original - De: "Dirk Eddelbuettel" À: "Anwar Ludin" Cc: "Robin Girard" , "Dirk Eddelbuettel" , rcpp-devel@lists.r-forge.r-project.org Envoyé: Mardi 14 Mai 2013 16:40:37 Objet: Re: [Rcpp-devel] using Rcpp modules