Hello, 

We have release the first version of our R/protobuf binding to the central R 
repository: 
http://cran.r-project.org/web/packages/RProtoBuf/index.html

The package uses protobuf reflection to dynamically load proto files and 
generate messages. As an example, here is how the quick example from the 
protobuf page translates to R : 

> require( RProtoBuf )
> readProtoFiles( "addressbook.proto" ) 
> bob <- new( tutorial.Person, 
+   email = "b...@example.com", 
+   name = "Bob",
+   id = 123 )
> writeLines( bob$toString() )
name: "Bob"
id: 123
email: "b...@example.com"

> bob$email
[1] "b...@example.com"
> bob$id <- 5
> bob$id
[1] 5

> serialize( bob, "person.pb" )

Complete documentation is available as part of our vignettes: 

> vignette( package = "RProtoBuf" )

which are also available from CRAN : 
http://cran.r-project.org/web/packages/RProtoBuf/index.html

Romain Francois and Dirk Eddelbuettel

-- 
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://tr.im/KfKn : Rcpp 0.7.2
|- http://tr.im/JOlc : External pointers with Rcpp
`- http://tr.im/JFqa : R Journal, Volume 1/2, December 2009

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to