Skip to content

Commit bdb2e2d

Browse files
authored
add R >= 4.4.0 guard for sort_by method
1 parent 1a15902 commit bdb2e2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

NAMESPACE

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,4 +207,5 @@ S3method(format_list_item, data.frame)
207207
export(fdroplevels, setdroplevels)
208208
S3method(droplevels, data.table)
209209

210-
S3method(sort_by, data.table)
210+
# sort_by added in R 4.4.0, #6662, https://stat.ethz.ch/pipermail/r-announce/2024/000701.html
211+
if (getRversion() >= "4.4.0") S3method(sort_by, data.table)

0 commit comments

Comments
 (0)