R/pb.R

Defines functions pb

pb <- function(name){
	descriptor <- deparse(substitute(name));
	if(!exists(descriptor, "RProtoBuf:DescriptorPool")){
		stop("No ProtoBuf Descriptor for: ", descriptor);
	};
	get(descriptor, "RProtoBuf:DescriptorPool");
}
jeroenooms/RProtoBufUtils documentation built on May 19, 2019, 6:12 a.m.