Skip to content

Commit

Permalink
Fixes #213
Browse files Browse the repository at this point in the history
  • Loading branch information
spsanderson committed Jun 13, 2022
1 parent f3e3a9f commit 5b4f954
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ None
1. Fix #210 - Fix param_grid order on internal which affected attributes and thus
the display of the order of the parameters.
2. Fix #211 - Add High and Low CI to `tidy_distribution_summary_tbl()`
3. Fix #213 - Use `purrr::compact()` on the list of distributions passed in order
to prevent the issue occurring in #212
4. Fix #212 - Make `tidy_distribution_comparison()` more robust in terms of handling
bad or erroneous data.

# TidyDensity 1.2.0

Expand Down
2 changes: 2 additions & 0 deletions R/combine-tidy-distributions-tbl.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ tidy_combine_distributions <- function(...){
# Add distributions to a list
dist_list <- list(...)

dist_list <- purrr::compact(dist_list)

# Checks ----
if (length(dist_list) < 2){
rlang::abort(
Expand Down

0 comments on commit 5b4f954

Please sign in to comment.