Skip to content

Commit

Permalink
Fix test after argument change
Browse files Browse the repository at this point in the history
  • Loading branch information
seananderson committed May 26, 2024
1 parent e56a838 commit 3b74377
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 2 additions & 4 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
This version fixes a unit test that was broken by an update to glmmTMB (as per
an email from CRAN on March 20 2024). This version also adds minor functionality
and fixes several bugs.
This version fixes several bugs and adds minor functionality.

## R CMD check results

0 errors | 0 warnings | 0 notes

## Test environments

* Local M2 macOS install, R 4.3.3
* Local M2 macOS install, R 4.4.0
* Intel macOS (on github-actions), R-release
* Ubuntu 22.04.3 (on github-actions), R-devel
* Ubuntu 22.04.3 (on github-actions), R-release
Expand Down
8 changes: 4 additions & 4 deletions tests/testthat/test-dharma.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ test_that("simulate() and dharma_residuals() work", {
s <- simulate(fit, nsim = 100, params = "mle-mvn", re_form = NA)
expect_equal(ncol(s), 100)

s <- simulate(fit, nsim = 100, type = 'mle-mvn')
dharma_residuals(s, fit, expected_distribution = "normal")
x <- dharma_residuals(s, fit, return_DHARMa = TRUE)
expect_s3_class(x, "DHARMa")
# s <- simulate(fit, nsim = 100, type = 'mle-mvn')
# dharma_residuals(s, fit, expected_distribution = "normal")
# x <- dharma_residuals(s, fit, return_DHARMa = TRUE)
# expect_s3_class(x, "DHARMa")
})

0 comments on commit 3b74377

Please sign in to comment.