Skip to content

Commit

Permalink
Added Matrix version to lme4 tests and workflow_dispatch to GitHub ac…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
leifeld committed Nov 9, 2023
1 parent e5e3bce commit a8aeabc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/CRAN check and test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
branches: [main, master]
pull_request:
branches: [main, master]
workflow_dispatch:
branches: [main, master]

name: CRAN check and test

Expand Down
6 changes: 4 additions & 2 deletions tests/testthat/test-extract.R
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,8 @@ test_that("extract glm.cluster objects from the miceadds package", {
# glmerMod (lme4) ----
test_that("extract glmerMod objects from the lme4 package", {
testthat::skip_on_cran()
skip_if_not_installed("lme4")
skip_if_not_installed("lme4", minimum_version = "1.1.34")
skip_if_not_installed("Matrix", minimum_version = "1.6.1")
require("lme4")
set.seed(12345)
gm1 <- glmer(cbind(incidence, size - incidence) ~ period + (1 | herd),
Expand Down Expand Up @@ -811,7 +812,8 @@ test_that("extract multinom objects from the nnet package", {
# nlmerMod (lme4) ----
test_that("extract nlmerMod objects from the lme4 package", {
testthat::skip_on_cran()
skip_if_not_installed("lme4")
skip_if_not_installed("lme4", minimum_version = "1.1.34")
skip_if_not_installed("Matrix", minimum_version = "1.6.1")
require("lme4")
set.seed(12345)
startvec <- c(Asym = 200, xmid = 725, scal = 350)
Expand Down

0 comments on commit a8aeabc

Please sign in to comment.