Skip to content

Commit a672f8c

Browse files
committed
Make vec_proxy_compare() compatible with older dplyr versions
1 parent 4a69d71 commit a672f8c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

R/compare.R

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@
4949
#' vec_sort(df)
5050
vec_proxy_compare <- function(x, ...) {
5151
if (!missing(...)) {
52+
# For backward compatibility with older dplyr versions
53+
if (match_relax(...)) {
54+
return(vec_proxy_order(x))
55+
}
5256
ellipsis::check_dots_empty()
5357
}
5458
return(.Call(vctrs_proxy_compare, x))
@@ -59,6 +63,10 @@ vec_proxy_compare.default <- function(x, ...) {
5963
stop_native_implementation("vec_proxy_compare.default")
6064
}
6165

66+
match_relax <- function(..., relax = FALSE) {
67+
relax
68+
}
69+
6270
#' @rdname vec_proxy_compare
6371
#' @export
6472
vec_proxy_order <- function(x, ...) {

0 commit comments

Comments
 (0)