R/merge.R

setGeneric( "merge" )
setMethod( "merge", 
	c( x = "Message", y = "Message" ), 
	function( x, y , ... ){
		if( !identical( x@type, y@type ) ){
                        stop(sprintf("incompatible message types, cannot merge '%s' and '%s'", x@type, y@type))
		}
		
		message <- .Call( "Message__merge", x@pointer, y@pointer, PACKAGE="RProtoBuf")
		message
} )

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.