Skip to content
Prev 421 / 10988 Next

[Rcpp-devel] Dealing with 2-dimensional vectors

Ah, thank you.  I forgot about automatic type conversions and somehow
thought that an explicit cast was necessary (i.e.
(vector<int>)s_a.attr("dim")), which led to an ambiguity error.
That's it, I'm dusting off my _Thinking in C++_ book :)
Good point; I was only using it to better understand what was going on.


On a somewhat different note, do you have any plans to support
multidimensional arrays (or is it something that I missed in the API?)
 (Or is there a particular reason to avoid heavy use of
multidimensional arrays in R?)

--Leo