Skip to content

Commit

Permalink
Add internal roxygen stub of validate_slide_window_arg
Browse files Browse the repository at this point in the history
So we can crossref in other internal roxygen without CHECK warning.
  • Loading branch information
brookslogan committed Jan 8, 2025
1 parent 14dcd9e commit 3ff4092
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/time-utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ guess_period.POSIXt <- function(time_values, time_values_arg = rlang::caller_arg
as.numeric(NextMethod(), units = "secs")
}

#' Validate `.before` or `.window_size` argument
#' @keywords internal
validate_slide_window_arg <- function(arg, time_type, lower = 1, allow_inf = TRUE, arg_name = rlang::caller_arg(arg)) {
if (time_type == "custom") {
cli_abort(
Expand Down

0 comments on commit 3ff4092

Please sign in to comment.