<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">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">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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_quote"><div><div class="h5">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 class="HOEnZb"><font color="#888888"><div>
<br>
</div><div> - Murray</div></font></span></div>
</div>
<br>_______________________________________________<br>
Rprotobuf-yada mailing list<br>
<a href="mailto:Rprotobuf-yada@lists.r-forge.r-project.org">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>