[Rcpp-devel] vector<string> -> SEXP
Romain François
francoisromain at free.fr
Tue Nov 10 09:38:05 CET 2009
On 11/09/2009 09:18 PM, Dirk Eddelbuettel wrote:
>
> On 9 November 2009 at 21:02, Romain François wrote:
> | I see, thanks. I still think it might be valuable to factor it out as
> | maybe a static method of RstringVector. Something like :
> |
> | static SEXP convertToSEXP( std::vector<std::string> v) ;
>
> Oh, I see.
>
> To eventually have a whole set of helper that convert from STL types to SEXPs
> and back? That would be useful.
Yes. In that case, I'll gradually add them as I need them in RProtoBuf.
The question remains of where. Should I create a separate helper class
that only has static methods or sort of populate the other classes. I
think I prefer the first option.
Romain
--
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://tr.im/EAD5 : LondonR slides
|- http://tr.im/BcPw : celebrating R commit #50000
`- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc
More information about the Rcpp-devel
mailing list