<div dir="ltr">This was an effect of fixing FR #2551 not properly (from me). Stricter (and extensive) tests are added now. Fixed in commit #1277 (v1.9.3).<div><br></div><div>Thanks for reporting.</div><div>Arun.</div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Apr 27, 2014 at 9:14 PM, Arunkumar Srinivasan <span dir="ltr"><<a href="mailto:aragorn168b@gmail.com" target="_blank">aragorn168b@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 reporting. I've added this case under comments to another recently filed issue <a href="https://r-forge.r-project.org/tracker/index.php?func=detail&aid=5442&group_id=240&atid=975" target="_blank">bug #5442</a> from Michele (as I am quite sure they're related to handling column types in `:=` without grouping).<div>
<br></div><div>Arun.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Fri, Apr 25, 2014 at 7:25 PM, John Laing <span dir="ltr"><<a href="mailto:john.laing@gmail.com" target="_blank">john.laing@gmail.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 class="h5"><div dir="ltr">If I create a logical column in my data.table and try to assign-by-reference a character value to it, the assignment fails silently. That is, it doesn't work but doesn't throw an error:<div>
<br></div>
<div><div>## make a simple data.table</div><div>require(data.table)</div><div>dt <- data.table(a=1:3, b=4:6, c=NA)</div><div><br></div><div>## fails silently</div><div>dt[, c := "foo"]</div><div>dt</div><div>
<br></div><div>In other cases where an action would lead to the implicit conversion of a column, data.table throws an error suggesting that the user convert the column explicitly if that's what they really mean to do. I think that's the right behavior and should be adopted in this case as well.</div>
<span><font color="#888888">
<div></div></font></span></div><span><font color="#888888"><div><br></div><div>-John</div></font></span></div>
<br></div></div>_______________________________________________<br>
datatable-help mailing list<br>
<a href="mailto:datatable-help@lists.r-forge.r-project.org" target="_blank">datatable-help@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help</a><br></blockquote></div><br></div>
</blockquote></div><br></div>