Skip to content

eval doesn't work for . in by #1298

@eantonya

Description

@eantonya
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 "."

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions