Skip to content

Commit c921efa

Browse files
committed
lintr
1 parent 309d84a commit c921efa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/data.table.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ replace_dot_alias = function(e) {
312312
root = root_name(jsub)
313313
} else if (length(jsub) > 2L && jsub[[2L]] %iscall% ":=") {
314314
#2142 -- j can be {} and have length 1
315-
stopf("You have wrapped `:=` with `{}` which is ok, but then `:=` must be the only thing inside `{}` and must be used only once. You have other statements inside the `{}`. Consider placing `{}` on the RHS of `:=` instead, e.g., DT[, someCol := { tmpVar <- ...; tmpVar*2 }].")
315+
stopf("You have wrapped `:=` with `{}` which is ok, but then `:=` must be the only thing inside `{}` and must be used only once. You have other statements inside the `{}`. Consider placing `{}` on the RHS of `:=` instead, e.g., DT[, someCol := { tmpVar <- ...; tmpVar*2 }].")
316316
}
317317
}
318318
if (root=="eval" && !any(all.vars(jsub[[2L]]) %chin% names_x)) {

0 commit comments

Comments
 (0)