[Rcpp-devel] type information about elements in Rcpp::List
Jiqiang Guo
guojq28 at gmail.com
Wed May 9 05:17:12 CEST 2012
Hi,
Thank Dirk first for replying to my previous questions so fast.
Another question:
Suppose I have a function in CPP as
void cppfun(Rcpp::List lst) {
......
}
Then I would like to call this cppfun in R code as say
cppfun(list(a=a, b=b, c=c, ...)), in which
a, b, c could be of different types and their type might be different as
this
function gets called another time. So I would like to know the type of a,
b, c
in the CPP code. Could someone help me out or point to me some other
approaches? Thanks.
Best,
Jiqiang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20120508/44cea192/attachment.html>
More information about the Rcpp-devel
mailing list