[Rprotobuf-yada] added some methods

Romain François francoisromain at free.fr
Tue Nov 10 18:33:40 CET 2009


Hi,

I've added some methods today to the R interface.

- clear : to clear a message, or a field of a message
- swap : swap elements of a repeated field of a message
- size : number of elements of a repeated field
- [[ : which can index a message by field name or field tag number

and cleaned some of the mutator code : less copy and paste and slightly 
more efficient (I think).

I see that the proto library contains some unit test, so I'll base ours 
on it, at least I'll use the same messages, etc ...

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 Rprotobuf-yada mailing list