I have code written where the following function would change or "mutate" the inputted data.table in R. The following function used to alter the object, dt, but no longer does so. I'm now using data.table version 1.14.8 and R 4.2.1.
test_fn <- function(dt){
dt[,test := .N]
}