<div dir="ltr">I just installed the latest and greatest (r547) from svn and it works now. I'll upgrade from CRAN whenever 0.3.2 is available there. Thanks for fixing this!</div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Sun, Dec 15, 2013 at 9:19 AM, Whitney Jackson <span dir="ltr"><<a href="mailto:whjackson@gmail.com" target="_blank">whjackson@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Thanks for the help! Sadly, I'm still seeing the error:<div><br></div><div>"cannot set non-repeated field to vector of length > 1"<br></div><div><br></div><div>According to sessionInfo() I'm now running RProtoBuf_0.3.1.1</div>
</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Dec 14, 2013 at 6:56 PM, Murray Stokely <span dir="ltr"><<a href="mailto:mstokely@google.com" target="_blank">mstokely@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Oops that should be :<div><br></div><div>install.packages("RProtoBuf", repos = "<a href="http://R-Forge.R-project.org" target="_blank">http://R-Forge.R-project.org</a>").<div>
<br></div></div></div><div><div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sat, Dec 14, 2013 at 4:47 PM, Murray Stokely <span dir="ltr"><<a href="mailto:murray@stokely.org" target="_blank">murray@stokely.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Actually I see that I had a local change that was not submitted even to r-forge that fixes this issue.<div><br></div><div>I've just submitted it, added more tests, and I think we are nearly ready to roll a 0.3.2 release onto CRAN. In the mean time, could you please try installing it from the latest version on R-Forge :</div>
<div><br></div><div>install.packages("HistogramTools", repos = "<a href="http://R-Forge.R-project.org" target="_blank">http://R-Forge.R-project.org</a>").<br></div><div><br></div><div> - Murray</div>
</div><div class="gmail_extra">
<br><br><div class="gmail_quote"><div><div>On Sat, Dec 14, 2013 at 3:15 PM, Murray Stokely <span dir="ltr"><<a href="mailto:mstokely@google.com" target="_blank">mstokely@google.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
<div dir="ltr"><div class="gmail_quote"><div><div>On Dec 14, 2013 2:05 PM, "Whitney Jackson" <<a href="mailto:whjackson@gmail.com" target="_blank">whjackson@gmail.com</a>> wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>I've run into an issue where I can't assign raw values to RProtoBuf fields of type bytes. See the following proto and R files for an example.<br></div><div><br></div><div><div>test.proto: <a href="http://pastebin.com/0n4dcYV7" target="_blank">http://pastebin.com/0n4dcYV7</a></div>
<div>test.R: <a href="http://pastebin.com/1C3KBVqh" target="_blank">http://pastebin.com/1C3KBVqh</a><br></div><div><br></div><div>From what I can tell, only R character vectors of length 1 can be assigned to bytes fields. That seems like a bug since protobuf bytes fields are meant to hold arbitrary bytes and R character vectors aren't (null chars are prohibited for example).</div>
<div><br></div><div>I'd appreciate any advise that anyone might have.</div></div></div></blockquote><div><br></div></div></div><div>What version of RProtoBuf are you using? Your example works fine on the version I am using, but that may include some fixes we haven't yet pushed to CRAN.</div>
<div><br></div><div>If the latest version from CRAN still has this problem, can you try the latest version from R-Forge?</div><div><br></div><div>I'll add a unit test to runit.bytes.R for this behavior.</div><span><font color="#888888"><div>
<br>
</div><div> - Murray</div></font></span></div>
</div>
<br></div></div>_______________________________________________<br>
Rprotobuf-yada mailing list<br>
<a href="mailto:Rprotobuf-yada@lists.r-forge.r-project.org" target="_blank">Rprotobuf-yada@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rprotobuf-yada" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rprotobuf-yada</a><br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>