[datatable-help] R-devel breaks data.table

Kevin Ushey kevinushey at gmail.com
Sat Feb 1 20:50:41 CET 2014


Hi guys,

See the commit here:

https://github.com/wch/r-source/commit/d0aece456bae5377245eb550a7434ba517be12fe

Now if I run the following code, I see an error:

library(data.table)

DT <- data.table(x=1, y=2, z=3)
DT[, k := 4]

Error in `[.data.table`(DT, , `:=`(k, 4)) :
  attempt to set index 3/3 in SET_STRING_ELT

Is this R-devel being overly picky about data.table's overallocation,
or is this a bug in data.table?

This is with data.table 1.8.11 from R-forge (version from yesterday).

R Under development (unstable) (2014-02-01 r64910)
Platform: x86_64-apple-darwin13.0.0 (64-bit)

locale:
[1] en_CA.UTF-8/en_CA.UTF-8/en_CA.UTF-8/C/en_CA.UTF-8/en_CA.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] data.table_1.8.11    knitr_1.5.15         devtools_1.4.1.99
BiocInstaller_1.13.3

loaded via a namespace (and not attached):
 [1] compiler_3.1.0 digest_0.6.4   evaluate_0.5.1 formatR_0.10
httr_0.2       memoise_0.1
 [7] parallel_3.1.0 plyr_1.8       RCurl_1.95-4.1 reshape2_1.2.2
stringr_0.6.2  tools_3.1.0
[13] whisker_0.3-2

-Kevin


More information about the datatable-help mailing list