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

:= assignment to under-allocated S4 slot fails #6704

Closed
MichaelChirico opened this issue Jan 2, 2025 · 0 comments · Fixed by #6703
Closed

:= assignment to under-allocated S4 slot fails #6704

MichaelChirico opened this issue Jan 2, 2025 · 0 comments · Fixed by #6703
Labels
bug non-atomic column e.g. list columns, S4 vector columns

Comments

@MichaelChirico
Copy link
Member

Another offshoot of #6575, but this issue also affects 1.16.4, so fixing it will be a separate bugfix.

setClass("DataTable", slots=c(x="data.table"))
options(datatable.alloccol=0L)
DT = new("DataTable", x=data.table(a=1))
DT@x[, b := 2L]
DT@x$b
# NULL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug non-atomic column e.g. list columns, S4 vector columns
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant