Skip to content

Commit

Permalink
Merge pull request #740 from ropensci/haven
Browse files Browse the repository at this point in the history
Haven
  • Loading branch information
elinw authored Nov 26, 2024
2 parents 2b9c328 + 8c5c381 commit 7a1bacc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions R/get_skimmers.R
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ get_skimmers.AsIs <- function(column) {
#' Finds the appropriate skimmers for the underlying data in the vector.
#' @export
get_skimmers.haven_labelled <- function(column) {
stopifnot(requireNamespace("haven", quietly = TRUE))
get_skimmers(vctrs::vec_data(column))
}

Expand Down
8 changes: 4 additions & 4 deletions tests/testthat/dplyr/filter-no-skim.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# A tibble: 0 x 15
# ... with 15 variables: skim_type <chr>, skim_variable <chr>, n_missing <int>,
# complete_rate <dbl>, factor.ordered <lgl>, factor.n_unique <int>, factor.top_counts <chr>,
# numeric.mean <dbl>, numeric.sd <dbl>, numeric.p0 <dbl>, numeric.p25 <dbl>, numeric.p50 <dbl>,
# numeric.p75 <dbl>, numeric.p100 <dbl>, numeric.hist <chr>
# i 15 variables: skim_type <chr>, skim_variable <chr>, n_missing <int>, complete_rate <dbl>,
# factor.ordered <lgl>, factor.n_unique <int>, factor.top_counts <chr>, numeric.mean <dbl>,
# numeric.sd <dbl>, numeric.p0 <dbl>, numeric.p25 <dbl>, numeric.p50 <dbl>, numeric.p75 <dbl>,
# numeric.p100 <dbl>, numeric.hist <chr>

0 comments on commit 7a1bacc

Please sign in to comment.