Package: RProtoBuf 0.4.22.4
RProtoBuf: R Interface to the 'Protocol Buffers' 'API' (Version 2 or 3)
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. Additional documentation is available in two included vignettes one of which corresponds to our 'JSS' paper (2016, <doi:10.18637/jss.v071.i02>. A sufficiently recent version of 'Protocol Buffers' library is required; currently version 3.3.0 from 2017 is the stated minimum.
Authors:
RProtoBuf_0.4.22.4.tar.gz
RProtoBuf_0.4.22.4.zip(r-4.5)RProtoBuf_0.4.22.4.zip(r-4.4)RProtoBuf_0.4.22.4.zip(r-4.3)
RProtoBuf_0.4.22.4.tgz(r-4.4-x86_64)RProtoBuf_0.4.22.4.tgz(r-4.4-arm64)RProtoBuf_0.4.22.4.tgz(r-4.3-x86_64)RProtoBuf_0.4.22.4.tgz(r-4.3-arm64)
RProtoBuf_0.4.22.4.tar.gz(r-4.5-noble)RProtoBuf_0.4.22.4.tar.gz(r-4.4-noble)
RProtoBuf.pdf |RProtoBuf.html✨
RProtoBuf/json (API)
NEWS
# Install 'RProtoBuf' in R: |
install.packages('RProtoBuf', repos = c('https://eddelbuettel.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/eddelbuettel/rprotobuf/issues
Last updated 9 days agofrom:1c0cb94b64. Checks:OK: 8 NOTE: 1. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 12 2024 |
R-4.5-win-x86_64 | NOTE | Nov 12 2024 |
R-4.5-linux-x86_64 | OK | Nov 12 2024 |
R-4.4-win-x86_64 | OK | Nov 12 2024 |
R-4.4-mac-x86_64 | OK | Nov 12 2024 |
R-4.4-mac-aarch64 | OK | Nov 12 2024 |
R-4.3-win-x86_64 | OK | Nov 12 2024 |
R-4.3-mac-x86_64 | OK | Nov 12 2024 |
R-4.3-mac-aarch64 | OK | Nov 12 2024 |
Exports:addall.equalArrayInputStreamArrayOutputStreamasMessageBackUpByteCountbytesizecan_serialize_pbclearclonecloseConnectionInputStreamConnectionOutputStreamcontaining_typecpp_typeCPPTYPE_BOOLCPPTYPE_DOUBLECPPTYPE_ENUMCPPTYPE_FLOATCPPTYPE_INT32CPPTYPE_INT64CPPTYPE_MESSAGECPPTYPE_STRINGCPPTYPE_UINT32CPPTYPE_UINT64default_valuedescriptorenum_typeenum_type_countfetchfieldfield_countfileDescriptorFileInputStreamFileOutputStreamflushGetErrnogetExtensionhashas_default_valueidenticalinput_typeis_extensionis_optionalis_repeatedis_requiredisInitializedlabelLABEL_OPTIONALLABEL_REPEATEDLABEL_REQUIREDmergemessage_typemethodmethod_countnamenested_typenested_type_countnewNextnumberoutput_typePreadreadASCIIreadJSONReadLittleEndian32ReadLittleEndian64readProtoFilesreadProtoFiles2ReadRawReadStringReadVarint32ReadVarint64resetDescriptorPoolserializeserialize_pbsetSetCloseOnDeletesetExtensionshowsizesize<-SkipstrswaptoJSONtoStringtypeTYPE_BOOLTYPE_BYTESTYPE_DOUBLETYPE_ENUMTYPE_FIXED32TYPE_FIXED64TYPE_FLOATTYPE_GROUPTYPE_INT32TYPE_INT64TYPE_MESSAGETYPE_SFIXED32TYPE_SFIXED64TYPE_SINT32TYPE_SINT64TYPE_STRINGTYPE_UINT32TYPE_UINT64unserialize_pbupdatevaluevalue_countWriteLittleEndian32WriteLittleEndian64WriteRawWriteStringWriteVarint32WriteVarint64
Dependencies:Rcpp
RProtoBuf-intro
Rendered fromRProtoBuf-intro.Rnw
usingutils::Sweave
on Nov 12 2024.Last update: 2020-02-07
Started: 2013-12-19
RProtoBuf-paper
Rendered fromRProtoBuf-paper.Rnw
usingutils::Sweave
on Nov 12 2024.Last update: 2020-02-07
Started: 2016-07-11
RProtoBuf-quickref
Rendered fromRProtoBuf-quickref.Rnw
usingutils::Sweave
on Nov 12 2024.Last update: 2020-02-07
Started: 2013-12-19
Readme and manuals
Help Manual
Help page | Topics |
---|---|
R Interface to the Protocol Buffers API | RProtoBuf-package RProtoBuf |
add elements of a repeated field of a message | add add,Message-method add-methods |
Class "ArrayInputStream" | ArrayInputStream-class |
Creates an ArrayInputStream | ArrayInputStream ArrayInputStream,raw,integer-method ArrayInputStream,raw,missing-method ArrayInputStream,raw,numeric-method ArrayInputStream-methods |
Class "ArrayOutputStream" | ArrayOutputStream-class |
Creates an ArrayOutputStream | ArrayOutputStream ArrayOutputStream,integer,integer-method ArrayOutputStream,integer,missing-method ArrayOutputStream,integer,numeric-method ArrayOutputStream,numeric,integer-method ArrayOutputStream,numeric,missing-method ArrayOutputStream,numeric,numeric-method ArrayOutputStream-methods |
Grab the protocol buffer message as an R list | as.list.Descriptor as.list.EnumDescriptor as.list.FileDescriptor as.list.Message as.list.ServiceDescriptor |
coerce an object to a protobuf message | asMessage |
Backs up a number of bytes from a stream | BackUp BackUp-methods |
The number of bytes read/written since the object was created | ByteCount ByteCount-methods |
The number of bytes taken by a message | bytesize bytesize,Message-method bytesize-methods |
Clear a field or all fields of the message and set them to their default values | clear clear,Message,character-method clear,Message,integer-method clear,Message,missing-method clear,Message,numeric-method clear,Message,raw-method clear-methods |
Clone protocol buffer messages | clone clone,Message-method clone-methods |
Completion support for protocol buffer messages and descriptors | .DollarNames.Descriptor .DollarNames.EnumDescriptor .DollarNames.FieldDescriptor .DollarNames.FileDescriptor .DollarNames.Message .DollarNames.MethodDescriptor .DollarNames.ServiceDescriptor .DollarNames.ZeroCopyInputStream .DollarNames.ZeroCopyOutputStream |
Class "ConnectionInputStream" | ConnectionInputStream-class |
Creates an ConnectionInputStream | ConnectionInputStream ConnectionInputStream,connection-method ConnectionInputStream-methods |
Class "ConnectionOutputStream" | ConnectionOutputStream-class |
Creates an ConnectionOutputStream | ConnectionOutputStream ConnectionOutputStream,connection-method ConnectionOutputStream-methods |
Gets the message type descriptor that contains a descriptor | containing_type containing_type-methods |
Class "Descriptor" | $,Descriptor-method $<-,Descriptor-method as.character,Descriptor-method containing_type,Descriptor-method Descriptor-class enum_type,Descriptor,ANY,ANY-method enum_type_count,Descriptor-method field,Descriptor-method field_count,Descriptor-method length,Descriptor-method names,Descriptor-method nested_type,Descriptor-method nested_type_count,Descriptor-method new,Descriptor-method show,Descriptor-method toString,Descriptor-method [[,Descriptor-method |
Get the descriptor of a message | descriptor descriptor,Message-method descriptor-methods |
The number of enum types | enum_type_count enum_type_count-methods |
Extract an enum type descriptor for a nested type | enum_type enum_type-methods |
Class "EnumDescriptor" | $,EnumDescriptor-method as.character,EnumDescriptor-method containing_type,EnumDescriptor-method EnumDescriptor-class has,EnumDescriptor-method length,EnumDescriptor-method names,EnumDescriptor-method show,EnumDescriptor-method toString,EnumDescriptor-method value value,EnumDescriptor-method value-methods value_count value_count,EnumDescriptor-method value_count-methods [[,EnumDescriptor-method |
Class "EnumValueDescriptor" | $,EnumValueDescriptor-method as.character,EnumValueDescriptor-method EnumValueDescriptor-class enum_type,EnumValueDescriptor,missing,missing-method name,EnumValueDescriptor-method number,EnumValueDescriptor-method show,EnumValueDescriptor-method toString,EnumValueDescriptor-method |
Fetch content of a repeated field | fetch fetch,Message-method fetch-methods |
The number of fields | field_count field_count-methods |
Extract a field descriptor | field field-methods |
Class "FieldDescriptor" | $,FieldDescriptor-method as.character,FieldDescriptor-method containing_type,FieldDescriptor-method cpp_type,FieldDescriptor-method default_value default_value,FieldDescriptor-method default_value-methods enum_type,FieldDescriptor,missing,missing-method FieldDescriptor-class has_default_value has_default_value,FieldDescriptor-method has_default_value-methods is_extension,FieldDescriptor-method is_optional is_optional,FieldDescriptor-method is_optional-methods is_repeated is_repeated,FieldDescriptor-method is_repeated-methods is_required is_required,FieldDescriptor-method is_required-methods label,FieldDescriptor-method message_type message_type,FieldDescriptor-method message_type-methods number,FieldDescriptor-method show,FieldDescriptor-method toString,FieldDescriptor-method type,FieldDescriptor-method |
Class "FileDescriptor" | $,FileDescriptor-method as.character,FileDescriptor-method FileDescriptor-class name,FileDescriptor-method show,FileDescriptor-method toString,FileDescriptor-method |
gets the file descriptor of an object | fileDescriptor fileDescriptor,Descriptor-method fileDescriptor,EnumDescriptor-method fileDescriptor,FieldDescriptor-method fileDescriptor,Message-method fileDescriptor,MethodDescriptor-method fileDescriptor,ServiceDescriptor-method fileDescriptor-methods |
Class "FileInputStream" | close,FileInputStream-method FileInputStream-class GetErrno,FileInputStream-method SetCloseOnDelete,FileInputStream-method |
Creates an FileInputStream | FileInputStream FileInputStream,character,integer,logical-method FileInputStream-methods |
Class "FileOutputStream" | close,FileOutputStream-method FileOutputStream-class flush,FileOutputStream-method GetErrno,FileOutputStream-method SetCloseOnDelete,FileOutputStream-method |
Creates an FileOutputStream | FileOutputStream FileOutputStream,character,integer,logical-method FileOutputStream-methods |
Get the error number for an I/O error | GetErrno GetErrno-methods |
Indicates if an object has the given field set | has has,Message-method has-methods |
Indicates if a field descriptor is an extension | is_extension is_extension-methods |
Indicates if a protocol buffer message is initialized | isInitialized isInitialized,Message-method isInitialized-methods |
Gets the label of a field | label label-methods LABEL_OPTIONAL LABEL_REPEATED LABEL_REQUIRED |
Merge two messages of the same type | merge,Message,Message-method |
Class "Message" | !=,Message,Message-method $,Message-method $<-,Message-method ==,Message,Message-method all.equal,Message,Message-method as.character,Message-method getExtension getExtension,Message-method identical,Message,Message-method length,Message-method Message-class names,Message-method serialize,Message-method setExtension setExtension,Message-method show,Message-method str,Message-method toJSON toJSON,Message-method toString,Message-method update,Message-method [[,Message-method [[<-,Message-method |
Class "MethodDescriptor" | $,MethodDescriptor-method $<-,MethodDescriptor-method as.character,MethodDescriptor-method input_type input_type,MethodDescriptor-method input_type-methods MethodDescriptor-class output_type output_type,MethodDescriptor-method output_type-methods toString,MethodDescriptor-method |
Name or full name of a descriptor | name name,Descriptor-method name,EnumDescriptor-method name,FieldDescriptor-method name,MethodDescriptor-method name,ServiceDescriptor-method name-methods |
The number of fields | nested_type_count nested_type_count-methods |
Extract a message type descriptor for a nested type | nested_type nested_type-methods |
Obtains a chunk of data from the stream | Next Next-methods |
Gets the declared tag number of a field | number number-methods |
Protocol Buffer descriptor importer | P |
Read a protocol buffer message from a connection | read read,Descriptor,ANY-method read,Descriptor,character-method read,Descriptor,raw-method read-methods |
read a message in ASCII format | readASCII readASCII,Descriptor,ANY-method readASCII,Descriptor,character-method readASCII-methods |
read a message in JSON format | readJSON readJSON,Descriptor,ANY-method readJSON,Descriptor,character-method readJSON-methods |
protocol buffer descriptor importer | readProtoFiles readProtoFiles2 resetDescriptorPool |
Serialize R object to Protocol Buffer Message. | can_serialize_pb serialize_pb unserialize_pb |
Class "ServiceDescriptor" | $,ServiceDescriptor-method as.character,ServiceDescriptor-method length,ServiceDescriptor-method method method,ServiceDescriptor-method method-methods method_count method_count,ServiceDescriptor-method method_count-methods ServiceDescriptor-class show,ServiceDescriptor-method toString,ServiceDescriptor-method [[,ServiceDescriptor-method |
set a subset of values of a repeated field of a message | set set,Message-method set-methods |
set the close on delete behavior | SetCloseOnDelete SetCloseOnDelete-methods |
Size of a message field | size size,Message-method size-methods |
Set the size of a field | size<- size<-,Message-method size<--methods |
Skips a number of bytes | Skip Skip-methods |
swap elements of a repeated field of a message | swap swap,Message-method swap-methods |
Gets the type or the C++ type of a field | CPPTYPE_BOOL CPPTYPE_DOUBLE CPPTYPE_ENUM CPPTYPE_FLOAT CPPTYPE_INT32 CPPTYPE_INT64 CPPTYPE_MESSAGE CPPTYPE_STRING CPPTYPE_UINT32 CPPTYPE_UINT64 cpp_type cpp_type-methods type type-methods TYPE_BOOL TYPE_BYTES TYPE_DOUBLE TYPE_ENUM TYPE_FIXED32 TYPE_FIXED64 TYPE_FLOAT TYPE_GROUP TYPE_INT32 TYPE_INT64 TYPE_MESSAGE TYPE_SFIXED32 TYPE_SFIXED64 TYPE_SINT32 TYPE_SINT64 TYPE_STRING TYPE_UINT32 TYPE_UINT64 |
with and within methods for protocol buffer messages | with.Message within.Message |
Virtual Class "ZeroCopyInputStream" | $,ZeroCopyInputStream-method BackUp,ZeroCopyInputStream-method ByteCount,ZeroCopyInputStream-method Next,ZeroCopyInputStream,missing-method ReadLittleEndian32 ReadLittleEndian32,ZeroCopyInputStream-method ReadLittleEndian32-methods ReadLittleEndian64 ReadLittleEndian64,ZeroCopyInputStream-method ReadLittleEndian64-methods ReadRaw ReadRaw,ZeroCopyInputStream,integer-method ReadRaw,ZeroCopyInputStream,numeric-method ReadRaw-methods ReadString ReadString,ZeroCopyInputStream,integer-method ReadString,ZeroCopyInputStream,numeric-method ReadString-methods ReadVarint32 ReadVarint32,ZeroCopyInputStream-method ReadVarint32-methods ReadVarint64 ReadVarint64,ZeroCopyInputStream-method ReadVarint64-methods Skip,ZeroCopyInputStream-method ZeroCopyInputStream-class |
Virtual Class "ZeroCopyOutputStream" | $,ZeroCopyOutputStream-method BackUp,ZeroCopyOutputStream-method ByteCount,ZeroCopyOutputStream-method Next,ZeroCopyOutputStream,raw-method WriteLittleEndian32 WriteLittleEndian32,ZeroCopyOutputStream,integer-method WriteLittleEndian32,ZeroCopyOutputStream,numeric-method WriteLittleEndian32,ZeroCopyOutputStream,raw-method WriteLittleEndian32-methods WriteLittleEndian64 WriteLittleEndian64,ZeroCopyOutputStream,integer-method WriteLittleEndian64,ZeroCopyOutputStream,numeric-method WriteLittleEndian64,ZeroCopyOutputStream,raw-method WriteLittleEndian64-methods WriteRaw WriteRaw,ZeroCopyOutputStream,raw-method WriteRaw-methods WriteString WriteString,ZeroCopyOutputStream,character-method WriteString-methods WriteVarint32 WriteVarint32,ZeroCopyOutputStream,integer-method WriteVarint32,ZeroCopyOutputStream,numeric-method WriteVarint32,ZeroCopyOutputStream,raw-method WriteVarint32-methods WriteVarint64 WriteVarint64,ZeroCopyOutputStream,integer-method WriteVarint64,ZeroCopyOutputStream,numeric-method WriteVarint64,ZeroCopyOutputStream,raw-method WriteVarint64-methods ZeroCopyOutputStream-class |