Rdatatable / data.table

R's data.table package extends data.frame:
http://r-datatable.com
Mozilla Public License 2.0
3.62k stars 985 forks source link

Internal error in subset.c: column 2 is an ALTREP vector. Please see NEWS item 2 in v1.11.4 and report this as a bug #4797

Closed stephanpdx closed 4 years ago

stephanpdx commented 4 years ago

I got the error message above. This issue has been reported before (https://github.com/Rdatatable/data.table/issues/2997) and seems to have been resolved.

Minimal reproducible example (from the previous github post): B <- CJ(i2 = letters, orig = runif(50)) B[, orig := as.character(orig)] B[, mergeKey := as.character(orig)] B[, .SD[1L], by = mergeKey]

R version 3.6.0 (2019-04-26) Platform: x86_64-redhat-linux-gnu (64-bit) Running under: CentOS Linux 7 (Core)

Matrix products: default BLAS/LAPACK: /usr/lib64/R/lib/libRblas.so

locale: [1] LC_CTYPE=en_US.utf8 LC_NUMERIC=C LC_TIME=en_US.utf8 LC_COLLATE=en_US.utf8 LC_MONETARY=en_US.utf8
[6] LC_MESSAGES=en_US.utf8 LC_PAPER=en_US.utf8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.utf8 LC_IDENTIFICATION=C

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

other attached packages: [1] data.table_1.11.4

loaded via a namespace (and not attached): [1] compiler_3.6.0 tools_3.6.0

Thanks!

Stephan

jangorecki commented 4 years ago

@stephanpdx Thanks for the report, could you try to reproduce issue on recent development version, or at least on 1.13.2? AFAICT (and what also #2997 concludes) this issue has been resolved already and you just need to upgrade your data.table version.

stephanpdx commented 4 years ago

Thanks Jan -- I'll ask the system administrator to upgrade. I think we can close this issue.