epiverse-trace / epichains

[Under active development] Methods for simulating and analysing the sizes and lengths of infectious disease transmission chains from branching process models
https://epiverse-trace.github.io/epichains/
Other
5 stars 2 forks source link

Use class() and attr() instead of structure() #184

Closed jamesmbaazam closed 7 months ago

jamesmbaazam commented 7 months ago

This PR fixes #183 by replacing the use of structure() to construct a class. The lintr suggests using a call to class() followed by calls to attr().

This PR will be merged ahead of #182 to fix the CI warnings there.

codecov-commenter commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (b5a3007) 99.26% compared to head (daa2e19) 99.26%. Report is 1 commits behind head on main.

:exclamation: Current head daa2e19 differs from pull request most recent head 62e522c. Consider uploading reports for the commit 62e522c to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #184 +/- ## ========================================== - Coverage 99.26% 99.26% -0.01% ========================================== Files 8 8 Lines 684 682 -2 ========================================== - Hits 679 677 -2 Misses 5 5 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.