Skip to content

Commit

Permalink
comment ref issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Toby Dylan Hocking committed Sep 20, 2024
1 parent bf48bdc commit 49fa45a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inst/tests/tests.Rraw
Original file line number Diff line number Diff line change
Expand Up @@ -12427,6 +12427,7 @@ DTout = data.table(
value2 = c("a", "b", "c", "d", "e", "f", "g", "h", "i", "j")
)
test(1866.6, melt(DT, measure.vars = patterns("^x", "^y", cols=names(DT))), DTout)
# patterns supports cols arg, #6498
test(1866.7, melt(data.table(x1=1,x2=2,y1=3,y2=4),measure.vars=patterns("2",cols=c("y1","y2"))), data.table(x1=1,x2=2,y1=3,variable=factor("y2"),value=4))
test(1866.8, DT[, lapply(.SD, sum), .SDcols=patterns("2",cols=c("x1","x2"))], data.table(x2=40L))

Expand Down

0 comments on commit 49fa45a

Please sign in to comment.