You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the variable created by using names() on a data.table keeps pointing to the data.table internal data, so when one renames a field, the variable which holds the names() results also changes. I suspect this is behind other crashes with data.table I have been experiencing
> x = data.table(a=c(1,2), b=c(2,3))
> n = names(x)
> setnames(x, "a","z")
> x
z b
1: 1 2
2: 2 3
> n
[1] "z" "b"
Version info:
data.table v 1.9.2
platform x86_64-pc-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 3
minor 1.0
year 2014
month 04
day 10
svn rev 65387
language R
version.string R version 3.1.0 (2014-04-10)
nickname Spring Dance
The text was updated successfully, but these errors were encountered:
Just to let you know you should report an issue after checking it on current dev 1.9.3. It may have been fixed already, 1.9.2 is quite old already. Cheers
Error in if (!all(names(sys.call()) %in% c("", "exact")))
warning("named arguments other than 'exact' are discouraged") :
missing value where TRUE/FALSE neededError during wrapup: missing
value where TRUE/FALSE neededError in if (!is.null(ns)) ns else
tryCatch(loadNamespace(name), error = function(e) stop(e)) :
missing value where TRUE/FALSE needed
Thanks. We're aware of this - duplicate of #512 #512. You should use
copy().
I'd be interested to know more about the other crashes you're
experiencing.
—
Reply to this email directly or view it on GitHub #777 (comment)
.
It seems that the variable created by using names() on a data.table keeps pointing to the data.table internal data, so when one renames a field, the variable which holds the names() results also changes. I suspect this is behind other crashes with data.table I have been experiencing
Version info:
data.table v 1.9.2
platform x86_64-pc-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 3
minor 1.0
year 2014
month 04
day 10
svn rev 65387
language R
version.string R version 3.1.0 (2014-04-10)
nickname Spring Dance
The text was updated successfully, but these errors were encountered: