-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Ensures required packages are in Imports section #774
base: main
Are you sure you want to change the base?
Conversation
hashing_function <- if (requireNamespace("rlang", quietly = TRUE)) { | ||
quote(rlang::hash) | ||
} else { | ||
function(x) paste(as.integer(x), collapse = "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: this hashing function gets a logical vector as input
Code Coverage Summary
Diff against main
Results for commit: 4590f44 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Unit Tests Summary 1 files 22 suites 13m 37s ⏱️ For more details on these failures, see this check. Results for commit 4590f44. ♻️ This comment has been updated with latest results. |
Unit Test Performance Difference
Results for commit 3a34d02 ♻️ This comment has been updated with latest results. |
@@ -44,6 +44,7 @@ test_that("e2e - tm_data_table: Verify checkbox displayed over data table", { | |||
}) | |||
|
|||
test_that("e2e - tm_data_table: Verify module displays data table", { | |||
testthat::skip_if_not_installed("rvest") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have recently pushed changes into the teal
due to noSuggest check and the class definition looks like this:
https://github.com/insightsengineering/teal/blob/7eac4d58a5373aa511f363a2f259d850749501f7/R/TealAppDriver.R#L10-L20
Just thinking loud now, would it help if we would have the following instead?
if (!requireNamespace("shinytest2", quietly = TRUE)) {
if (requireNamespace("testthat", quietly = TRUE) && getNamespace("testthat")$is_testing()) {
getNamespace("testthat")$skip("shinytest2 is not installed")
} else {
stop("Please install 'shinytest2' package to use this class.")
}
}
My motivation is to avoid a lot of skip statements in the upstream packages like here.
@averissimo is this still relevant? |
Pull Request
Fixes #518
Note on removals:
broom
as thebroom:glances
method can be replaced withgenerics::glances
Changes description
{broom}
dependencyrlang
conditionally