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
.
@Ramnath is correct. Line 40 of EasyHTMLReport.R is:
Update this line with:
Update the signature of the function from:
to:
If you don't want to rebuild the package you should be able to make this change using the
edit
function.