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
Copy file name to clipboardExpand all lines: NEWS.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -176,11 +176,12 @@ rowwiseDT(
176
176
177
177
9. `key<-`, marked as deprecated since 2012 and unusable since v1.15.0, has been fully removed.
178
178
179
-
10. Deprecation of `logicalAsInt` argument to `fwrite()` has been upgraded from a warning (since v1.15.0) to an error. It will be removed in the next release.
179
+
10. The following in-progress deprecations have proceeded:
180
180
181
-
11. Deprecation of `fread(autostart=)` has been upgraded to an error. It has been warning since v1.11.0 (6 years ago). The argument will be removed in the next release.
182
-
183
-
12. Deprecation of `droplevels(in.place=TRUE)` (warning since v1.16.0) has been upgraded from warning to error. The argument will be removed in the next release.
181
+
+ Using `fwrite(logicalAsInt=)` has been upgraded from a warning (since v1.15.0) to an error. It will be removed in the next release.
182
+
+ Using `fread(autostart=)` has been upgraded to an error. It has been warning since v1.11.0 (6 years ago). The argument will be removed in the next release.
183
+
+ Using `droplevels(in.place=TRUE)` (warning since v1.16.0) has been upgraded from warning to error. The argument will be removed in the next release.
184
+
+ Use of `:=` and `with=FALSE` in `[` has been upgraded from warning (since v1.15.0) to error. Long ago (before 2014), this was needed when, e.g., assigning to a vector of column names defined outside the table, but `with=FALSE` is no longer needed to do so: `DT[, (cols) := ...]` works fine.
184
185
185
186
# data.table [v1.16.4](https://github.com/Rdatatable/data.table/milestone/36) 4 December 2024
if (is.data.table(x)) return(as.data.table.data.table(x)) # S3 is weird, #6739. Also # nocov; this is tested in 2302.{2,3}, not sure why it doesn't show up in coverage.
217
218
if (!identical(class(x), "data.frame")) return(as.data.table(as.data.frame(x)))
218
219
if (!isFALSE(keep.rownames)) {
219
220
# can specify col name to keep.rownames, #575; if it's the same as key,
# j was substituted before dealing with i so that := can set allow.cartesian=FALSE (#800) (used above in i logic)
706
706
if (is.null(jsub)) return(NULL)
707
707
708
-
if (!with&&jsub %iscall% ":=") {
709
-
# TODO: make these both errors (or single long error in both cases) in next release.
710
-
# i.e. using with=FALSE together with := at all will become an error. Eventually with will be removed.
711
-
if (is.null(names(jsub)) && is.name(jsub[[2L]])) {
712
-
warningf("with=FALSE together with := was deprecated in v1.9.4 released Oct 2014. Please wrap the LHS of := with parentheses; e.g., DT[,(myVar):=sum(b),by=a] to assign to column name(s) held in variable myVar. See ?':=' for other examples. As warned in 2014, this is now a warning.")
warningf("with=FALSE ignored, it isn't needed when using :=. See ?':=' for examples.")
716
-
}
717
-
with=TRUE
718
-
}
719
-
720
708
if (!with) {
709
+
if (jsub %iscall% ":=") {
710
+
# TODO(>=1.18.0): Simplify this error
711
+
stopf("with=FALSE together with := was deprecated in v1.9.4 released Oct 2014; this has been warning since v1.15.0. Please wrap the LHS of := with parentheses; e.g., DT[,(myVar):=sum(b),by=a] to assign to column name(s) held in variable myVar. See ?':=' for other examples.")
712
+
}
721
713
# missingby was already checked above before dealing with i
722
714
if (jsub %iscall% c("!", "-") && length(jsub)==2L) { # length 2 to only match unary, #2109
Copy file name to clipboardExpand all lines: inst/tests/tests.Rraw
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -4655,7 +4655,7 @@ test(1241, DT[order(x,-y)], # optimized to forder()
4655
4655
4656
4656
DT = data.table(a=1:3, b=4:6)
4657
4657
myCol = "a"
4658
-
test(1242.1, DT[2,myCol:=6L,with=FALSE], data.table(a=INT(1,6,3), b=4:6), warning="with=FALSE together with := was deprecated in v1.9.4 released Oct 2014. Please")
4658
+
test(1242.1, DT[2,myCol:=6L,with=FALSE], error="with=FALSE together with := was deprecated in v1.9.4")
0 commit comments