Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix is_continuous() for unparameterised <epiparameter> objects #395

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

joshwlambert
Copy link
Member

This PR fixes an issue with is_continuous() when supplied with an unparameterised <epiparameter> object, by adding an isTRUE() to an if statement in the function. This stops the functions failing with an uninformative error message due to the conditional in the if statement containing an NA from family.epiparameter().

This also prevents the plot.epiparameter() method erroring with the same uninformative error when the <epiparameter> object is unparameterised.

@joshwlambert joshwlambert merged commit 54b7bf1 into main Oct 10, 2024
7 checks passed
@joshwlambert joshwlambert deleted the fix_is_continuous branch October 10, 2024 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant