-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip tests/examples when packages in Suggest section are not installed (
#518) - Part of pre-release activities #506 (base branch for this PR is `pre-release-cleanup@main`) - Rationale on insightsengineering/idr-tasks#713 ### Changes description - [x] Handles `@examples` - with `@examplesIf requireNamespace("MultiAssayExperiment")` as suggested [here](https://indrajeetpatil.github.io/preventive-r-package-care/#/soft-dependency-hygiene) - Conditional clause replacing `miniACC` with empty data.frame - [x] Skips tests that use {MAE} or {SE} - [x] Skips tests that use {withr} #### Discussions - > That's not a reason to skip tests. MAE is in Suggests so installing is the responsibility of the person who wants to run tests, i.e. not the end user. If someone uses teal with MAE data, they most likely have the package installed. - Some generic tests and examples for `filter_state_api` are complex cases that join together normal data frames with MAE - These could be broken down to 2 examples. - If we merge this it also means tests using {withr} should be skipped - Seems silly, but necessary to be a complete compliance WDYT?
- Loading branch information
1 parent
99e53e5
commit 3220aac
Showing
16 changed files
with
128 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.