<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><br>
From those messages, it looks like the install didn't work
properly. This can happen on Windows if another process is still
using the older .dll.<br>
<br>
On every release we usually do get reports like this.<br>
<br>
Since it is Windows, let's try overkill first :<br>
<br>
1. Close all R sessions<br>
2. To be sure, reboot. This ensures all locks on open .dlls are
fully cleared.<br>
3. Start R<br>
4. remove.package("data.table")<br>
5. install.packages("data.table")<br>
6. require(data.table)<br>
7. test.data.table() -- does it work?<br>
8. Rerun test<br>
<br>
The Windows .zip for 1.9.2 is now on the homepage, so it's best
to use that one please.<br>
<br>
Matt<br>
<br>
On 27/02/14 15:05, carrieromichele wrote:<br>
</div>
<blockquote
cite="mid:CAP=9f+rmd3=Znha+pRQU0S7k=XpxaPCw6P=ZmUtDFo2crKEOqg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>I just installed the new data.table versions. I tried both
1.9.0, available (binary) at <a moz-do-not-send="true"
href="http://datatable.r-forge.r-project.org/data.table_1.9.0.zip">http://datatable.r-forge.r-project.org/data.table_1.9.0.zip</a>,
and 1.9.2 (CRAN) building from source (using Rtools)</div>
<div><br>
</div>
<div>After installing I run my BAU scripts and found out that I
had different results... this is what I could made
reproducible </div>
<div><br>
</div>
<div>1.8.10 </div>
<div><br>
</div>
<div>> library(data.table) </div>
<div>data.table 1.8.10 For help type: help("data.table") </div>
<div>> set.seed(1) </div>
<div>> dt <- data.table(id=rep(1:4, each=3), </div>
<div>+ var1 = rep(letters[1:3], 4), </div>
<div>
+ var2 = rnorm(12), </div>
<div>+ key="id,var1") </div>
<div>> dt </div>
<div> id var1 var2 </div>
<div> 1: 1 a -0.6264538 </div>
<div> 2: 1 b 0.1836433 </div>
<div>
3: 1 c -0.8356286 </div>
<div> 4: 2 a 1.5952808 </div>
<div> 5: 2 b 0.3295078 </div>
<div> 6: 2 c -0.8204684 </div>
<div> 7: 3 a 0.4874291 </div>
<div> 8: 3 b 0.7383247 </div>
<div> 9: 3 c 0.5757814 </div>
<div>10: 4 a -0.3053884 </div>
<div>11: 4 b 1.5117812 </div>
<div>12: 4 c 0.3898432 </div>
<div>> </div>
<div>> key(dt) </div>
<div>[1] "id" "var1" </div>
<div>> dt[.(unique(id)), list(var1, var2)] </div>
<div> id var1 var2 </div>
<div> 1: 1 a -0.6264538 </div>
<div> 2: 1 b 0.1836433 </div>
<div> 3: 1 c -0.8356286 </div>
<div> 4: 2 a 1.5952808 </div>
<div> 5: 2 b 0.3295078 </div>
<div> 6: 2 c -0.8204684 </div>
<div> 7: 3 a 0.4874291 </div>
<div> 8: 3 b 0.7383247 </div>
<div> 9: 3 c 0.5757814 </div>
<div>10: 4 a -0.3053884 </div>
<div>11: 4 b 1.5117812 </div>
<div>12: 4 c 0.3898432 </div>
<div><br>
</div>
<div>
1.9.0 </div>
<div><br>
</div>
<div><br>
</div>
<div>> library(data.table) </div>
<div>data.table 1.9.0 For help type: help("data.table") </div>
<div>Warning message: </div>
<div>package ‘data.table’ was built under R version 3.1.0 </div>
<div>> set.seed(1) </div>
<div>> dt <- data.table(id=rep(1:4, each=3), </div>
<div>+ var1 = rep(letters[1:3], 4), </div>
<div>+ var2 = rnorm(12), </div>
<div>+ key="id,var1") </div>
<div>> dt </div>
<div> id var1 var2 </div>
<div> 1: 1 a -0.6264538 </div>
<div> 2: 1 b 0.1836433 </div>
<div> 3: 1 c -0.8356286 </div>
<div> 4: 2 a 1.5952808 </div>
<div> 5: 2 b 0.3295078 </div>
<div> 6: 2 c -0.8204684 </div>
<div> 7: 3 a 0.4874291 </div>
<div> 8: 3 b 0.7383247 </div>
<div> 9: 3 c 0.5757814 </div>
<div>10: 4 a -0.3053884 </div>
<div>11: 4 b 1.5117812 </div>
<div>12: 4 c 0.3898432 </div>
<div>> </div>
<div>> key(dt) </div>
<div>[1] "id" "var1" </div>
<div>> dt[.(unique(id)), list(var1, var2)] </div>
<div> id var1 var2 </div>
<div> 1: 1 a -0.6264538 </div>
<div> 2: 1 a 0.1836433 </div>
<div> 3: 1 a -0.8356286 </div>
<div> 4: 2 a 1.5952808 </div>
<div> 5: 2 a 0.3295078 </div>
<div> 6: 2 a -0.8204684 </div>
<div> 7: 3 a 0.4874291 </div>
<div> 8: 3 a 0.7383247 </div>
<div> 9: 3 a 0.5757814 </div>
<div>10: 4 a -0.3053884 </div>
<div>11: 4 a 1.5117812 </div>
<div>12: 4 a 0.3898432 </div>
<div><br>
</div>
<div>1.9.2</div>
<div><br>
</div>
<div>> library("data.table", lib.loc="C:/Program
Files/R/R-3.0.2/library")</div>
<div>data.table 1.9.2 For help type: help("data.table")</div>
<div>> set.seed(1)</div>
<div>> dt <- data.table(id=rep(1:4, each=3),</div>
<div>+ var1 = rep(letters[1:3], 4),</div>
<div>+ var2 = rnorm(12),</div>
<div>+ key="id,var1")</div>
<div>Error in forder(x, cols, sort = TRUE, retGrp = FALSE) : </div>
<div> object 'Cforder' not found</div>
<div>> dt</div>
<div> id var1 var2</div>
<div>
1: 1 a -0.6264538</div>
<div> 2: 1 b 0.1836433</div>
<div> 3: 1 c -0.8356286</div>
<div> 4: 2 a 1.5952808</div>
<div> 5: 2 b 0.3295078</div>
<div> 6: 2 c -0.8204684</div>
<div> 7: 3 a 0.4874291</div>
<div> 8: 3 b 0.7383247</div>
<div> 9: 3 c 0.5757814</div>
<div>10: 4 a -0.3053884</div>
<div>11: 4 b 1.5117812</div>
<div>12: 4 c 0.3898432</div>
<div>> </div>
<div>> key(dt)</div>
<div>[1] "id" "var1"</div>
<div>> dt[.(unique(id)), list(var1, var2)]</div>
<div>Error in `[.data.table`(dt, .(unique(id)), list(var1,
var2)) : </div>
<div> object 'Cbmerge' not found</div>
<div><br>
</div>
<div>It seems that in the 1.9.0 version when you join using
fewer keys than the whole set of keys, the first values of the
remaining keys are "carried forward". Other column looks
fine. </div>
<div><br>
</div>
<div>In the 1.9.2 instead some dependencies seem missing.</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
datatable-help mailing list
<a class="moz-txt-link-abbreviated" href="mailto:datatable-help@lists.r-forge.r-project.org">datatable-help@lists.r-forge.r-project.org</a>
<a class="moz-txt-link-freetext" href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help</a></pre>
</blockquote>
<br>
</body>
</html>