Skip to content

Commit

Permalink
Deal with a purrr deprecation (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkeane authored Jan 3, 2023
1 parent 09a23ab commit 8436409
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/util.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ uuid <- function() {
#' @importFrom stats setNames
#' @importFrom rlang is_missing
get_default_args <- function(FUN) {
forms <- formals(FUN)
forms <- as.list(formals(FUN))
# Don't keep any of the formals that are length 0 (e.g. NULL)
non_zero <- map_int(forms, length) > 0
# Don't keep any of the formals that are missing (which happens if there is no default)
Expand Down

0 comments on commit 8436409

Please sign in to comment.