diff --git a/R/utils.R b/R/utils.R index 385476a05..2e1b06a1f 100644 --- a/R/utils.R +++ b/R/utils.R @@ -78,7 +78,7 @@ try_silent <- function(code) { check_df <- function(df) { expect_s3_class(df, "data.frame") if (length(df) >= 1L) { - lengths <- vapply(df, length, integer(1L), USE.NAMES = FALSE) + lengths <- unname(lengths(df)) expect_equal(diff(lengths), rep(0L, length(lengths) - 1L)) expect_equal(nrow(df), lengths[[1]]) }