[Rcpp-devel] vector<string> -> SEXP
Romain François
francoisromain at free.fr
Tue Nov 10 13:03:06 CET 2009
On 11/10/2009 12:21 PM, Dirk Eddelbuettel wrote:
>
> 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...
Deal.
> | 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
>
--
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