[Rcpp-devel] Template + Rcpp::List error

Dirk Eddelbuettel edd at debian.org
Wed Feb 17 23:58:17 CET 2016


On 17 February 2016 at 20:28, Diego Monteiro wrote:
| Hello, I'm trying to implement a conversion from a R type into my own Type ,
| but  in the beginning I am getting an error.
| 
| The code is like the following :
| template<> MyType as (SEXP x){
| 
|   Rcpp::List dataSource(x);
| [.....]
| }
| 
| This is the ERROR:
| An exception has occurried: could not convert using R function : as.list
| 
| "x"  is a char list.
| 
| Thanks for any help.

Can you distill things to a minimal working example?  It is pretty hard for
us to say something meaningful otherwise.

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org


More information about the Rcpp-devel mailing list