Skip to content

Commit

Permalink
Fix partial matching warning (#1007)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bisaloo authored Feb 27, 2025
1 parent 81d24eb commit fdeac6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/dist_spec.R
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ collapse.multi_dist_spec <- function(x, ...) {
ids <- unique(c(1, cumsum(consecutive$lengths[-length(consecutive$lengths)])))
## find ids of nonparametric distributions that are collapsable
## (i.e. have other nonparametric distributions followign them)
collapseable <- ids[consecutive$values & (consecutive$length > 1)]
collapseable <- ids[consecutive$values & (consecutive$lengths > 1)]
## identify ids of distributions that follow the collapseable distributions
next_ids <- lapply(collapseable, function(id) {
ids[id] + seq_len(consecutive$lengths[id] - 1)
Expand Down

0 comments on commit fdeac6a

Please sign in to comment.