Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

RProtoBuf (version 0.1-0)

readProtoFiles: protocol buffer descriptor importer

Description

Imports proto files into the descriptor pool that is then used by the P function to resolve message type names.

Usage

readProtoFiles(files, dir, package = "RProtoBuf")

Arguments

files
Proto files
dir
Directory. If files is not specified, files with the "proto" extension in the dir directory are imported
package
R package name. If files and dir are missing, "proto" files in the "proto" directory of the package tree are imported.

Value

  • NULL, invisibly.

See Also

P

Examples

Run this code
# from a package
readProtoFiles( package = "RProtoBuf" )

# from a directory
proto.dir <- system.file( "proto", package = "RProtoBuf" )
readProtoFiles( dir = proto.dir )

# set of files
proto.files <- list.files( proto.dir, full.names = TRUE )
readProtoFiles( proto.files )

Run the code above in your browser using DataLab