I am trying to do some data.table
manipulations in an Rmd
file. The file works just fine with knit
. However, when I run it through easyHtmlReport
, it doesn't work: my data.table by
expressions fail with ‘Error: object 'userId' not found’, where userId
is one of the columns in my data table that I am using in the j
expression. The broken expression is:
expt.daystat = expt.users[,list(count=length(userId)),
keyby=list(day, status)]
As I said, it works fine in plain knit
but breaks in easyHtmlReport
.