[datatable-help] Streamlining unit tests with test_that
Tom Short
tshort.rlists at gmail.com
Tue Nov 30 23:41:49 CET 2010
On Tue, Nov 30, 2010 at 5:03 PM, Steve Lianoglou
<mailinglist.honeypot at gmail.com> wrote:
> On Tue, Nov 30, 2010 at 3:48 PM, Tom Short <tshort.rlists at gmail.com> wrote:
>
>> Cludgy, but this datatable-test.R works:
>>
>> assign(".Depends", "data.table", envir = topenv())
>> TESTDT = data.table(a=as.integer(c(1,3,4,4,4,4,7)),
>> b=as.integer(c(5,5,6,6,9,9,2)),
>> v=1:7)
>> setkey(TESTDT,a,b)
>> x <- TESTDT[SJ(4,6), v, mult="first"]
>
> Hmm ... that's not working for me:
>
It looks like I haven't updated my installed version of data.table in
a while. With an older version of cedta, my workaround worked, but
cedta no longer looks at the .Depends variable.
- Tom
More information about the datatable-help
mailing list