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

revdeps broken by DT[, j=<expr>:<expr] being with=TRUE #6486

Closed
MichaelChirico opened this issue Sep 8, 2024 · 4 comments
Closed

revdeps broken by DT[, j=<expr>:<expr] being with=TRUE #6486

MichaelChirico opened this issue Sep 8, 2024 · 4 comments
Labels
revdep Reverse dependencies
Milestone

Comments

@MichaelChirico
Copy link
Member

A number of revdeps were broken by db3cbb4 (#4460):

MetaIntegrator
SOMnmR
VoxR
categoryEncodings
flextable
hesim
iml
immunarch
kalmanfilter
polypharmacy
sentometrics
sjtable2df

I haven't looked into the root cause(s) yet.

@MichaelChirico MichaelChirico added the revdep Reverse dependencies label Sep 8, 2024
@MichaelChirico MichaelChirico added this to the 1.17.0 milestone Sep 8, 2024
@MichaelChirico
Copy link
Member Author

OK, here's an MRE (not sure if it covers everything):

DT=data.table(a=1,b=2)
DT[,1:ncol(DT)]

# ** on CRAN
#        a     b
#    <num> <num>
# 1:     1     2

# ** on master
DT[, 1:ncol(DT)]
# [1] 1 2

At a glance, we need to be more selective & make sure all(all.vars(jsub) %in% names(x)) before switching to with=TRUE.

@MichaelChirico
Copy link
Member Author

#6487 solved everything, nice 😎

@jangorecki
Copy link
Member

@MichaelChirico If this fix is also going to be in 1.16.2 (I haven't see it merged to patch branch, but feels like it fits there, no?) then we should assign it to that milestone instead.

@MichaelChirico MichaelChirico modified the milestones: 1.17.0, 1.16.2 Sep 12, 2024
@MichaelChirico
Copy link
Member Author

no, original breakage #6487 was only in dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
revdep Reverse dependencies
Projects
None yet
Development

No branches or pull requests

2 participants