``` r d = data.table(a = 1) q = quote(.(a)) d[, eval(q)] # a #1: 1 d[, 1, by = .(a)] # a V1 #1: 1 1 # the problem d[, 1, by = eval(q)] #Error in eval(expr, envir, enclos) : could not find function "." ```