[Rcpp-devel] Basic documentation for Rcpp

2011-05-13 Thread Nick Sabbe
Hello all. Today, I posted a question on stackoverflow.com, but I was advised to ask the question through this mailing list. So, here is the verbatim question from SO (http://stackoverflow.com/questions/5991314/basic-documentation-for-rcpp): I want to look into rcpp to improve the speed of

Re: [Rcpp-devel] Basic documentation for Rcpp

2011-05-13 Thread Dirk Eddelbuettel
Nick, On 13 May 2011 at 15:02, Nick Sabbe wrote: | Hello all. | | Today, I posted a question on stackoverflow.com, but I was advised to ask the | question through this mailing list. That is indeed frequently suggested by Romain and myself, and I am glad that others suggested it to you to. With

Re: [Rcpp-devel] Create and access several instances of a C++ class from R

2011-05-13 Thread soeren . vogel
Hello This posting continues the discussions from here: https://stat.ethz.ch/pipermail/r-help/2011-April/276490.html https://stat.ethz.ch/pipermail/r-devel/2011-May/060922.html Following all recommendations, we have rewritten our class to use STL. However, I have been trying around with variou

[Rcpp-devel] Exposing constructors with same number of arguments with different types using Rcpp Modules

2011-05-13 Thread Jelmer Ypma
Dear Rcpp-list, I'm trying to expose multiple constructors of a C++ class to R using modules. Here is an example of what I want to do based on the Uniform example ===Begin: example library('inline') library('Rcpp') test_code <-' using namespace Rcpp; class Uniform { public: Uniform(

[Rcpp-devel] DataFrame -> dims protected

2011-05-13 Thread Nick Sabbe
Dear all, I'm new to Rcpp (see also my previous message). I'm trying to do some things to a data.frame passed in as a parameter. One of the first things I need is the size of this data.frame, and I found the, unfortunately protected, member dims which returns just that. Now, I can simply do

Re: [Rcpp-devel] Create and access several instances of a C++ class from R

2011-05-13 Thread Dirk Eddelbuettel
On 13 May 2011 at 16:11, soeren.vo...@uzh.ch wrote: | Hello | | This posting continues the discussions from here: | | https://stat.ethz.ch/pipermail/r-help/2011-April/276490.html | | https://stat.ethz.ch/pipermail/r-devel/2011-May/060922.html | | Following all recommendations, we have rewritte

Re: [Rcpp-devel] Exposing constructors with same number of arguments with different types using Rcpp Modules

2011-05-13 Thread Dirk Eddelbuettel
Hi Jelmer, On 13 May 2011 at 16:35, Jelmer Ypma wrote: | Dear Rcpp-list, | | I'm trying to expose multiple constructors of a C++ class to R using | modules. Here is an example of what I want to do based on the Uniform | example | | ===Begin: example | library('inline') | library('Rcpp') | | te

Re: [Rcpp-devel] DataFrame -> dims protected

2011-05-13 Thread Dirk Eddelbuettel
On 13 May 2011 at 16:44, Nick Sabbe wrote: | Dear all, | | | | I?m new to Rcpp (see also my previous message). | | I?m trying to do some things to a data.frame passed in as a parameter. | | One of the first things I need is the size of this data.frame, and I found the, | unfortunately prote

Re: [Rcpp-devel] Create and access several instances of a C++ class from R

2011-05-13 Thread soeren . vogel
On 13.05.2011, at 18:55, Dirk Eddelbuettel wrote: > On 13 May 2011 at 16:11, soeren.vo...@uzh.ch wrote: > > | Following all recommendations, we have rewritten our class to use STL. > However, I have been trying around with various changes, but I can't get it > working with RCPP_MODULES. Also, t

Re: [Rcpp-devel] Exposing constructors with same number of arguments with different types using Rcpp Modules

2011-05-13 Thread Jelmer Ypma
Hi Dirk, many thanks for your quick reply. Maybe something like the below could work? The different constructor specifications are defined in the list ClassName@constructors, but I coudln't find where R decides which of these functions to call. Thanks again, Jelmer overloaded.func <- function( x

[Rcpp-devel] R.e. Basic documentation for Rcpp (Nick Sabbe)

2011-05-13 Thread Christian Gunning
On Fri, May 13, 2011 at 7:36 AM, wrote: > > If anybody wants to call me an idiot for not finding this information: go > ahead and make your day. Then make mine and point me to the docs I need :-) Did you find the Rcpp-quickref vignette? It contains a list of short and hopefully self-explanatory