Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken when subsetting data table #871

Closed
sunnyghk opened this issue Oct 8, 2014 · 1 comment
Closed

Broken when subsetting data table #871

sunnyghk opened this issue Oct 8, 2014 · 1 comment
Assignees
Milestone

Comments

@sunnyghk
Copy link

sunnyghk commented Oct 8, 2014

Recently I have upgraded to data.table 1.9.4, and notice the subsetting is broken when the column name is 'class'. It can be resolve by setting datatable.auto.index to FALSE, but nonetheless is causing a pretty major problem:

test = data.table(class=c('a','b'), x=c(1,2))
test[class=='a']
Error in setattr(attr(x, "index"), paste(cols, collapse = "__"), o) :
attempt to set invalid 'class' attribute
options(datatable.auto.index=FALSE)
test[class=='a']
class x
1: a 1

@mattdowle mattdowle added this to the v1.9.6 milestone Oct 8, 2014
@mattdowle
Copy link
Member

Thanks for the nice report. Fixed and closed by 4aa7c0c

@mattdowle mattdowle self-assigned this Oct 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants