[Rcpp-devel] "No matching function for call to as(double&)" error at compile time

2012-12-05 Thread Robert A';gata
Hi, I am not sure what I am missing. Any help would be greatly appreciated. I have the following code: // myList will have column called "a" Rcpp::List myList = someInputList; Rcpp::NumericVector test = Rcpp::as(myList["a"]); /* up to the above line, everything compiles. Now I want to get a doub

Re: [Rcpp-devel] Dynamically creating data.frame/list (of vectors)

2012-11-28 Thread Robert A';gata
; > On Mon, Nov 26, 2012 at 12:55 PM, Dirk Eddelbuettel > wrote: > > > > On 26 November 2012 at 12:41, Davor Cubranic wrote: > > | On 2012-11-23, at 1:36 PM, Robert A'gata wrote: > > | > > | > Inside onEventA, I'd like to be able to create a bla

[Rcpp-devel] Dynamically creating data.frame/list (of vectors)

2012-11-23 Thread Robert A';gata
Hi, I have a situation where I would like to create R data.frame/list dynamically from the two event callbacks. 1) Event A: it tells what the table column names and types are. 2) Event B: it always follows A and is triggered when a new row of table described in A becomes available. Example of int