lintr
data.table
使用 ,等函数时抛出错误.SD
,.SDcols
例如:
/path/readData.R:130:29: warning: no visible binding for global variable ‘.SD’, Did you mean 'SSD'?
DT[, "row.sum" := rowSums(.SD), .SDcols = names(DT)]
^~~
我怎样才能解决这个问题?