Skip to content

Commit 4685224

Browse files
committed
placate lintr, more formatting changes
1 parent 2d873b1 commit 4685224

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

R/data.table.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,14 +1386,14 @@ replace_dot_alias = function(e) {
13861386
# Replaces numerical lhs with respective names_x
13871387
if(is.character(lhs)){
13881388
m = chmatch(lhs, names_x)
1389-
if(!anyNA(m)){
1389+
if(!anyNA(m)) {
13901390
# updates by reference to existing columns
13911391
cols = as.integer(m)
1392-
newnames=NULL
1393-
}else{
1392+
newnames = NULL
1393+
} else {
13941394
# Adding new column(s).
1395-
newnames=setdiff(lhs, names_x)
1396-
m[is.na(m)] = ncol(x)+seq_len(length(newnames))
1395+
newnames = setdiff(lhs, names_x)
1396+
m[is.na(m)] = ncol(x) + seq_along(newnames)
13971397
cols = as.integer(m)
13981398
# ok <- selfrefok above called without verbose -- only activated when
13991399
# ok=-1 which will trigger setalloccol with verbose in the next

0 commit comments

Comments
 (0)