Fixed in 1.9.3:
https://github.com/Rdatatable/data.table/commit/ddc1d23166932198ee826f8e66176266093b0b41
Arun
From: Stavros Macrakis (Σταῦρος Μακράκης) [email protected]
Reply: Stavros Macrakis (Σταῦρος Μακράκης) [email protected]
Date: June 30, 2014 at 6:30:56 PM
To: [email protected] [email protected]
Subject: [datatable-help] Error corrupts tables
> library(data.table)
data.table 1.9.2 For help type: help("data.table")
> test <- data.table(a=1:10,b=1:10%%6==0,key="a")
> test[b==1][test,b,roll=2]
Error in if (!is.null(lhs)) { : missing value where TRUE/FALSE needed
Not sure what the error is there, but even worse...
> test
Error in if (!is.null(ns)) ns else tryCatch(loadNamespace(name), error =
function(e) { :
missing value where TRUE/FALSE needed
> tables()
Error in if (!is.null(ns)) ns else tryCatch(loadNamespace(name), error =
function(e) { :
missing value where TRUE/FALSE needed
It looks like some data structure has been corrupted.
_______________________________________________
datatable-help mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help_______________________________________________
datatable-help mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/datatable-help