Skip to content

Commit

Permalink
add dropped DT
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-schwen committed Dec 25, 2023
1 parent 3c361c4 commit 63f10fa
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 @@ -17590,6 +17590,7 @@ for (col in c("a","b","c")) {

# DT() functional form, #4872 #5106 #5107 #5129
if (base::getRversion() >= "4.1.0") {
DT = DTfun
# we have to EVAL "|>" here too otherwise this tests.Rraw file won't parse in R<4.1.0
droprn = function(df) { rownames(df)=NULL; df } # TODO: could retain rownames where droprn is currently used below
test(2212.011, EVAL("mtcars |> DT(mpg>20, .(mean_hp=round(mean(hp),2)), by=cyl)"),
Expand Down

0 comments on commit 63f10fa

Please sign in to comment.