I am using the R package data.table to deal with big data files. However, I found it cannot be used with opencpu.
For example, my R function is,
foo <- function() {
library(data.table)
iris = data.table(iris)
o = iris[,.N,Species]
return(list(o,dim(o)))
}
and I tried to ocpu.call this function by running,
var req = ocpu.call("hello",{},
function(session){
console.log(session)
});
And when I check the session, the result output is
[[1]]
Null data.table (0 rows and 0 cols)
[[2]]
[1] 0 0
So you can see that opencpu cannot be used with R package, data.table.
I wonder if this is right or I just missed something here?