<div dir="ltr"><div style="font-size:13px"><br></div><div style="font-size:13px">Dear RProtoBuf Developers,</div><div style="font-size:13px"><br></div><div style="font-size:13px">I'm teaching a class, and we are trying to use RProtoBuf on Linux.</div><div style="font-size:13px"><br></div><div style="font-size:13px">We are encountering the problem when trying to read in the .proto files.</div><div style="font-size:13px"><br></div><div style="font-size:13px">I've appended a minimal example of the .proto files below. We are trying to read these in with</div><div style="font-size:13px"><br></div><div style="font-size:13px">readProtoFiles(dir = "proto_dir")<br></div><div style="font-size:13px"><br></div><div style="font-size:13px">The errors are:</div><div style="font-size:13px"><br></div><div style="font-size:13px"><div>protos_min/P2.proto:7:22:"com.name.common.value.P2Proto.var_2" is already defined in file "P2.proto".</div><div>protos_min/P2.proto:6:9:"com.name.common.value.P2Proto" is already defined in file "P2.proto".</div></div><div style="font-size:13px"><br></div><div style="font-size:13px">The .proto files worked with Java protobuf code, but we would like to try to do all of our work within R.</div><div style="font-size:13px"><br></div><div style="font-size:13px">We are using R 3.2.4 on RHEL 6, and we've tried compiling RProtoBuf against protobuf versions 2.4.1, 2.5.0, and 2.6.1.</div><div style="font-size:13px"><br></div><div style="font-size:13px">Any advice is most appreciated. None of us has any experience with protobufs, yet the students need to decode this data to do their work.</div><div style="font-size:13px"><br></div><div style="font-size:13px">Many thanks,</div><div style="font-size:13px"><br></div><span style="font-size:13px">Bill</span><br style="font-size:13px"><br style="font-size:13px"><div style="font-size:13px">::::::::::::::</div><div style="font-size:13px">P1.proto</div><div style="font-size:13px">::::::::::::::</div><div style="font-size:13px">package com.name.common.value;</div><div style="font-size:13px"><br></div><div style="font-size:13px">option java_outer_classname="P1ProtoBuffs";</div><div style="font-size:13px">import "P2.proto";</div><div style="font-size:13px"><br></div><div style="font-size:13px">message P1Proto {</div><div style="font-size:13px">    optional P2Proto var_1 = 3;</div><div style="font-size:13px">}</div><div style="font-size:13px"><br></div><div style="font-size:13px">::::::::::::::</div><div style="font-size:13px">P2.proto</div><div style="font-size:13px">::::::::::::::</div><div style="font-size:13px">package com.name.common.value;</div><div style="font-size:13px"><br></div><div style="font-size:13px">option java_outer_classname="P2ProtoBuffs";</div><div style="font-size:13px">import "P3.proto";</div><div style="font-size:13px"><br></div><div style="font-size:13px">message P2Proto {</div><div style="font-size:13px">    optional P3Proto var_2 = 2;</div><div style="font-size:13px">}</div><div style="font-size:13px"><br></div><div style="font-size:13px">::::::::::::::</div><div style="font-size:13px">P3.proto</div><div style="font-size:13px">::::::::::::::</div><div style="font-size:13px">package com.name.common.value;</div><div style="font-size:13px"><br></div><div style="font-size:13px">option java_outer_classname="P3ProtoBuffs";</div><div style="font-size:13px">import "P4.proto";</div><div style="font-size:13px"><br></div><div style="font-size:13px">message P3Proto {</div><div style="font-size:13px">    optional commagg.value.P4Proto var_3 = 1;</div><div style="font-size:13px">}</div><div style="font-size:13px">::::::::::::::</div><div style="font-size:13px">P4.proto</div><div style="font-size:13px">::::::::::::::</div><div style="font-size:13px">package com.name.commagg.value;</div><div style="font-size:13px"><br></div><div style="font-size:13px">option java_outer_classname="P4Protos";</div><div style="font-size:13px"><br></div><div style="font-size:13px">message P4Proto {</div><div style="font-size:13px">    message P4S1Proto {</div><div style="font-size:13px">        optional string var_4 = 3;</div><div style="font-size:13px">    }</div><div style="font-size:13px"><br></div><div style="font-size:13px">    message P4S2Proto {</div><div style="font-size:13px">        optional P4S1Proto var_5 = 1;</div><div style="font-size:13px">    }</div><div style="font-size:13px"><br></div><div style="font-size:13px">    repeated P4S1Proto var_6 = 1;</div><div style="font-size:13px">    optional P4S1Proto var_7 = 2;</div><div style="font-size:13px">    optional P4S2Proto var_8 = 3;</div><div style="font-size:13px">}</div></div>