R data.table ':=' works in direct call, but same function in a package fails

后端 未结 2 2238
無奈伤痛
無奈伤痛 2021-02-19 23:45

Using R\'s data.table package,

This works:

instruction = \"a = data.table(name=1:3, value=1:3, blah=1:3); a[,c(\'value\', \'blah\'):=NULL]\"
eval(parse(t         


        
2条回答
  •  我在风中等你
    2021-02-20 00:46

    I had same problem and I solved it adding data.table to Imports and Depends:. My data.table version is 1.9.6

提交回复
热议问题