Skip to content

Commit

Permalink
skip some test on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
HannaMeyer committed Apr 24, 2024
1 parent 2e70151 commit d875193
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/testthat/test-errorProfiles.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

test_that("errorProfiles works in default settings", {
skip_on_cran()
skip_on_os("mac", arch = "aarch64")
data(splotdata)
splotdata <- sf::st_drop_geometry(splotdata)
predictors <- terra::rast(system.file("extdata","predictors_chile.tif", package="CAST"))
Expand Down Expand Up @@ -31,6 +32,7 @@ test_that("errorProfiles works in default settings", {

test_that("errorProfiles works in with LPD", {
skip_on_cran()
skip_on_os("mac", arch = "aarch64")
data(splotdata)
splotdata <- sf::st_drop_geometry(splotdata)
predictors <- terra::rast(system.file("extdata","predictors_chile.tif", package="CAST"))
Expand Down Expand Up @@ -59,6 +61,7 @@ test_that("errorProfiles works in with LPD", {

test_that("errorProfiles works for multiCV", {
skip_on_cran()
skip_on_os("mac", arch = "aarch64")
data(splotdata)
splotdata <- sf::st_drop_geometry(splotdata)
predictors <- terra::rast(system.file("extdata","predictors_chile.tif", package="CAST"))
Expand Down
4 changes: 4 additions & 0 deletions tests/testthat/test-fss.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

test_that("ffs works with default arguments and the splotopen dataset (numerical only)",{
skip_on_os("mac", arch = "aarch64")
data("splotdata")
splotdata = splotdata |> sf::st_drop_geometry()
set.seed(1)
Expand All @@ -22,6 +23,7 @@ test_that("ffs works with default arguments and the splotopen dataset (numerical

test_that("ffs works with default arguments and the splotopen dataset (include categorial)",{
skip_on_cran()
skip_on_os("mac", arch = "aarch64")
data("splotdata")
splotdata = splotdata |> sf::st_drop_geometry()
set.seed(1)
Expand All @@ -40,6 +42,7 @@ test_that("ffs works with default arguments and the splotopen dataset (include c

test_that("ffs works for classification with default arguments",{
skip_on_cran()
skip_on_os("mac", arch = "aarch64")
data("splotdata")
splotdata = splotdata |> sf::st_drop_geometry()
splotdata$Biome = droplevels(splotdata$Biome)
Expand All @@ -61,6 +64,7 @@ test_that("ffs works for classification with default arguments",{

test_that("ffs works for withinSE = TRUE",{
skip_on_cran()
skip_on_os("mac", arch = "aarch64")
data("splotdata")
splotdata = splotdata |> sf::st_drop_geometry()
splotdata$Biome = droplevels(splotdata$Biome)
Expand Down

0 comments on commit d875193

Please sign in to comment.