[Rprotobuf-yada] bytes

Romain Francois romain.francois at dbmail.com
Sat Sep 11 10:18:30 CEST 2010


Le 11/09/10 00:54, Dirk Eddelbuettel a écrit :
> Hi Koert,
>
> Thanks for posting on-list!
>
> On 10 September 2010 at 15:19, eckuipers-web at yahoo.com wrote:
> | Dirk, Romain,
> | Why did you decide to represent the bytes field type by an R character vector?
> | Why not raw?
> | I have a message with a bytes field, and within R i cannot get to the bytes
> | since the character representation cuts it off at the first null character it
> | runs into, it seems. So charToRaw doesnt help me here either.
> |
> | Any suggestions?
>
> Fair question.
>
> We just happened to have uploaded 0.2.0 which should be on CRAN tomorrow --
> did you check against the ancient version on CRAN or did you check against
> SVN?

This will not make any difference.

I guess Koert is right and we really should convert bytes fields into 
raw vectors, and bytes repeated fields into list of raw vectors.

As Dirk said, we just released, so you missed a window. But next time.

Romain

-- 
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://bit.ly/cCmbgg : Rcpp 0.8.6
|- http://bit.ly/bzoWrs : Rcpp svn revision 2000
`- http://bit.ly/b8VNE2 : Rcpp at LondonR, oct 5th




More information about the Rprotobuf-yada mailing list