RProtoBuf (version 0.4.13)

add-methods: add elements of a repeated field of a message

Description

Add elements to a repeated field of a message.

Arguments

Methods

signature(object = "Message")

add elements to a repeated field of a message

Examples

Run this code
# NOT RUN {
unitest.proto.file <- system.file("unitTests", "data", "unittest.proto",
				  package = "RProtoBuf" )
readProtoFiles(file = unitest.proto.file)

test <- new(protobuf_unittest.TestAllTypes)
test$add("repeated_int32", 1)
test$add("repeated_int32", 2:10)
test$repeated_int32
# }

Run the code above in your browser using DataLab