Skip to content

Commit b25ee1b

Browse files
a kludge for ancient dplyr
1 parent 5ea39fc commit b25ee1b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

inst/tests/other.Rraw

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ if (loaded[["dplyr"]]) {
102102
DT = data.table(A=c("b","c","a"), B=10:12)
103103
setindex(DT, A)
104104
DT2 = dplyr::arrange(DT, A)
105-
test(2.2, DT2[A=="c"], data.table(A="c", B=11L))
105+
# TODO(R>=3.6.0): Old versions of dplyr might coerce to tbl or data.frame; try removing this
106+
if (is.data.table(DT2))
107+
test(2.2, DT2[A=="c"], data.table(A="c", B=11L))
106108
}
107109

108110
if (FALSE) { # loaded[["reshape"]]

0 commit comments

Comments
 (0)