Skip to content

Commit

Permalink
more with the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
doserjef committed Sep 2, 2024
1 parent dbd6f76 commit 30721ff
Show file tree
Hide file tree
Showing 14 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/test-intMsPGOcc.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ skip_on_cran()

# Intercept only ----------------------------------------------------------
# Simulate data -----------------------------------------------------------
# set.seed(883)
set.seed(883)
J.x <- 10
J.y <- 10
# Total number of data sources across the study region
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-intPGOcc.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
skip_on_cran()

# Intercept only ----------------------------------------------------------
set.seed(111)
J.x <- 15
J.y <- 15
J.all <- J.x * J.y
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-lfJSDM.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
skip_on_cran()

# Intercept only ----------------------------------------------------------
set.seed(1818)
J.x <- 8
J.y <- 8
J <- J.x * J.y
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-msPGOcc.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
skip_on_cran()

# Intercept only ----------------------------------------------------------
set.seed(123)
J.x <- 8
J.y <- 8
J <- J.x * J.y
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-sfJSDM-NNGP.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
skip_on_cran()

# Intercept Only ----------------------------------------------------------
set.seed(833)
J.x <- 8
J.y <- 8
J <- J.x * J.y
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-sfMsPGOcc-NNGP.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
skip_on_cran()

# Intercept Only ----------------------------------------------------------
set.seed(234)
J.x <- 8
J.y <- 8
J <- J.x * J.y
Expand Down
1 change: 0 additions & 1 deletion tests/testthat/test-spIntPGOcc-GP.R
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ test_that("non-integer n.post", {
batch.length = batch.length,
accept.rate = 0.43,
NNGP = FALSE,
n.factors = 3,
n.omp.threads = 1,
verbose = FALSE))
})
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-spMsPGOcc-GP.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
skip_on_cran()

# Intercept Only ----------------------------------------------------------
set.seed(1010)
J.x <- 8
J.y <- 8
J <- J.x * J.y
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-spMsPGOcc-NNGP.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
skip_on_cran()

# Intercept Only ----------------------------------------------------------
set.seed(1010)
J.x <- 8
J.y <- 8
J <- J.x * J.y
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-spPGOcc-GP.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
skip_on_cran()

# Intercept only ----------------------------------------------------------
set.seed(830)
J.x <- 8
J.y <- 8
J <- J.x * J.y
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-spPGOcc-NNGP.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
skip_on_cran()

# Intercept only ----------------------------------------------------------
set.seed(237)
J.x <- 8
J.y <- 8
J <- J.x * J.y
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-svcMsPGOcc-NNGP.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
skip_on_cran()

# Intercept Only ----------------------------------------------------------
set.seed(883)
J.x <- 8
J.y <- 8
J <- J.x * J.y
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-svcPGBinom-NNGP.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
skip_on_cran()

# Intercept only ----------------------------------------------------------
set.seed(320)
J.x <- 8
J.y <- 8
J <- J.x * J.y
Expand Down Expand Up @@ -119,7 +120,6 @@ test_that("all correlation functions work", {
data = data.list,
n.batch = 40,
batch.length = batch.length,
paralllel.chains = TRUE,
cov.model = "gaussian",
tuning = list(phi = 0.5),
NNGP = TRUE,
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-svcPGOcc-NNGP.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
skip_on_cran()

# Intercept only ----------------------------------------------------------
set.seed(348)
J.x <- 8
J.y <- 8
J <- J.x * J.y
Expand Down

0 comments on commit 30721ff

Please sign in to comment.