[Rprotobuf-yada] serialize to files
Romain François
francoisromain at free.fr
Fri Nov 6 21:02:17 CET 2009
Hi,
And now for something completely different, serializing a message to a file.
> p <- new( tutorial.Person, id = 1, name = "Romain", email =
"francoisromain at free.fr" )
> serialize( p, "/tmp/romain.bin" )
> writeLines( as.character( tutorial.Person$read( "/tmp/romain.bin") ) )
name: "Romain"
id: 1
email: "francoisromain at free.fr"
--
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://tr.im/BcPw : celebrating R commit #50000
|- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc
`- http://tr.im/yw8E : New R package : sos
More information about the Rprotobuf-yada
mailing list