R/add.R

setGeneric( "add", function(object, field, values){
	standardGeneric( "add" )
} )
setMethod( "add", "Message", function( object, field, values ){
	
	if( is( values, "Message" ) ){
		values <- list( values )
	}
	
	.Call( "Message__add_values", object@pointer, field, values, PACKAGE = "RProtoBuf" )
	invisible( object )
} )

Try the RProtoBuf package in your browser

Any scripts or data that you put into this service are public.

RProtoBuf documentation built on Nov. 3, 2022, 9:06 a.m.