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

Move {jsonlite} to suggested dependency #213

Merged
merged 4 commits into from
Nov 28, 2023
Merged

Move {jsonlite} to suggested dependency #213

merged 4 commits into from
Nov 28, 2023

Conversation

joshwlambert
Copy link
Member

This PR moves {jsonlite} from an imported dependency to a suggested dependency as it is only used within an internal function (.read_epidist_db()).

A new check is added within .read_epidist_db() to error with an informative message if {jsonlite} is not installed. Tests are added to mock the behaviour of {jsonlite} not being installed and to test .is_pkg_installed(). The mock testing follows the {cfr} package.

The design principles vignette is updated to address changes to {jsonlite} dependency.

@joshwlambert joshwlambert merged commit 71f5815 into main Nov 28, 2023
9 checks passed
@joshwlambert joshwlambert deleted the mv_jsonlite branch November 28, 2023 17:09
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