Learn R Programming

RProtoBuf (version 0.1-0)

RProtoBuf-package: R Interface to the Protocol Buffers API

Description

Protocol Buffers are a way of encoding structured data in an efficient yet extensible format. Google uses Protocol Buffers for almost all of its internal RPC protocols and file formats.

This package provides R API to create, manipulate, parse and serialize protocol buffer messages from R

Arguments

Details

ll{ Package: RProtoBuf Version: 0.1-0 Date: $Date$ Depends: Rcpp (>= 0.7.2), methods SystemRequirements: ProtoBuf compiler (to create C++ header and source files from .proto descriptions) and library License: GPL-2 URL: http://code.google.com/p/protobuf/ }

References

http://code.google.com/p/protobuf/

The project is maintained in r-forge: http://r-forge.r-project.org/projects/rprotobuf/ and has a mailing list : https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rprotobuf-yada

See Also

Message for some examples

Examples

Run this code
# an example proto file
system.file( "proto", "AddressBook.proto", package = "RProtoBuf" )

# create a message of type AddressBook, defined in the example proto file
demo( "addressbook", package = "RProtoBuf" )

# using R binary connections and files to read and write messages
demo( "io", package = "RProtoBuf" )

# more documentation in the vignette
vignette( "RProtoBuf", package = "RProtoBuf" )

Run the code above in your browser using DataLab