Please explain the context and purpose of your contribution and list the changes you made to the code base or documentation.
Checklist
- I understand and agree to the code of conduct.
- I have listed any substantial changes in the development news.
-
I have added
testthat
unit tests totests/testthat
for any new functionality. - This pull request is not a draft.