Skip to content

Commit

Permalink
add isTRUE to is_continuous to fix for unparameterised <epiparameter>
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwlambert committed Oct 10, 2024
1 parent 42fbb22 commit 5de8d2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/epiparameter.R
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,8 @@ is_continuous <- function(x) {
is_epiparameter(x)
)
# get individual distributions out of mixture to check if continuous
if (family(x) == "mixture") {
# isTRUE to control for family returning NA for unparameterised
if (isTRUE(family(x) == "mixture")) {
fam <- .get_mixture_family(x)
} else {
fam <- family(x)
Expand Down

0 comments on commit 5de8d2a

Please sign in to comment.