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

Diego Monteiro dvm1607 at gmail.com
Wed Feb 17 23:28:21 CET 2016


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20160217/5d593be2/attachment.html>


More information about the Rcpp-devel mailing list