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

Check data inputs to epidist_prepare #121

Open
athowes opened this issue Jun 19, 2024 · 0 comments
Open

Check data inputs to epidist_prepare #121

athowes opened this issue Jun 19, 2024 · 0 comments

Comments

@athowes
Copy link
Collaborator

athowes commented Jun 19, 2024

epidist_prepare should check data inputs and give appropriate errors.

test_that("epidist_prepare.default gives an error when passed a list", { # nolint: line_length_linter.
  expect_error(epidist_prepare(list(), model = "latent_individual"))
})

That said, it may be not worth doing this as epidist_prepare will be superceeded by as and is functionality in #73. Though the solution to that issue should also do something similar.

Resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant