Skip to content

Commit

Permalink
check empty_order argument
Browse files Browse the repository at this point in the history
  • Loading branch information
mgirlich committed Aug 22, 2023
1 parent 2874b88 commit c2a1911
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/translate-sql-window.R
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ rows <- function(from = -Inf, to = 0) {
#' @export
win_rank <- function(f, empty_order = FALSE) {
force(f)
check_bool(empty_order)

function(order = NULL) {
group <- win_current_group()
order <- unwrap_order_expr({{ order }}, f = f)
Expand Down

0 comments on commit c2a1911

Please sign in to comment.