[Rcpp-devel] vector<string> -> SEXP

Dirk Eddelbuettel edd at debian.org
Tue Nov 10 12:21:04 CET 2009


On 10 November 2009 at 09:38, Romain François wrote:
| 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 even just helper functions...

| or sort of populate the other classes. I think I prefer the first option.

Right now we don't really have a matching 'sexp' class.  

Let's chat some more or just try an approach...

Dirk

-- 
Three out of two people have difficulties with fractions.


More information about the Rcpp-devel mailing list