Skip to content

Commit 2dfd231

Browse files
committed
lint r
1 parent c9693bd commit 2dfd231

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
@@ -1407,7 +1407,7 @@ replace_dot_alias = function(e) {
14071407
newnames = setdiff(lhs, names(x))
14081408

14091409
if (length(newnames) > 0) {
1410-
if (is.function(jval)) {
1410+
if (is.function(jval)) {
14111411
stopf("RHS of `:=` is a function. To create a new column of functions, it must be a list column (e.g., wrap in `list()`).")
14121412
} else if (is.list(jval) && length(jval) == 1 && is.function(jval[[1L]])) {
14131413
stopf("RHS of `:=` is a length-1 list containing a function. `data.table` does not automatically recycle lists. To create a list-column, use `rep(list(myfun), .N)` to match the number of rows.")

0 commit comments

Comments
 (0)