add-methods | R Documentation |
Add elements to a repeated field of a message.
signature(object = "Message")
add elements to a repeated field of a message
unitest.proto.file <- system.file("tinytest", "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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.