-
Notifications
You must be signed in to change notification settings - Fork 18
Update tests to use the 3rd edition of testthat #298
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
Conversation
expect_message returns the message object now, so expectations like expect_equal have to be nested inside it in order to work.
instead of expect_equivalent(). Also, handle multiple deprecation warnings.
The check is throwing a warning because gtools is an orphaned package, and one of mikropml's indirectly depends on it -- I think the root package is BayesFactor. Waiting on them to submit a new release to CRAN richarddmorey/BayesFactor#161 |
I determined which mikropml dependencies depend on gtools with: mikropml_deps <- tools::package_dependencies(packages = 'mikropml',
recursive = TRUE)$mikropml %>%
sort()
all_deps <- tools::package_dependencies(packages = mikropml_deps,
recursive = TRUE)
deps_tbl <- tibble::tibble(Package=names(all_deps),
data=purrr::map(all_deps, tibble::as_tibble)) %>%
tidyr::unnest(data)
deps_tbl %>% dplyr::filter(value == 'gtools') %>% knitr::kable()
gplots depends on gtools, while ROCR depends on gplots and MLmetrics depends on ROCR. So gplots is the root cause. I opened an issue here: talgalili/gplots#11 |
For future reference, |
…into testthat-3e
macOS devel seems to be failing due to an error beyond our control. I think we can move forward with this as-is. |
https://testthat.r-lib.org/articles/third-edition.html
Change(s) made
DESCRIPTION
gtools
became orphaned, but that has now been fixed.Checklist
(
Strikethroughany points that are not applicable.)[ ] Write unit tests for any new functionality or bug fixes.[ ] Update docs if there are any API changes:[ ] roxygen comments[ ] vignettes[ ] UpdateNEWS.md
if this includes any user-facing changes.