Skip to content

Commit

Permalink
Stop some tests from running on CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
1beb committed Jun 21, 2022
1 parent 862b262 commit 66e28cc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/testthat/test-predict_race.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ options("piggyback.verbose" = FALSE)
options("wru_data_wd" = TRUE)

test_that("Tests surname only predictions", {
skip_on_cran()
set.seed(42)
data(voters)
# Prediction using surname only
Expand All @@ -19,6 +20,7 @@ test_that("Tests surname only predictions", {
})

test_that("Test BISG NJ at county level", {
skip_on_cran()
set.seed(42)
data(voters)
census <- readRDS(test_path("data/census_test_nj_block_2010.rds"))
Expand All @@ -39,6 +41,7 @@ test_that("Test BISG NJ at county level", {
})

test_that("Test fBISG NJ at tract level", {
skip_on_cran()
set.seed(42)
data(voters)

Expand All @@ -61,6 +64,7 @@ test_that("Test fBISG NJ at tract level", {
})

test_that("BISG NJ at block level", {
skip_on_cran()
set.seed(42)
data(voters)
census <- readRDS(test_path("data/census_test_nj_block_2010.rds"))
Expand All @@ -83,6 +87,7 @@ test_that("BISG NJ at block level", {
})

test_that("BISG NJ at block_group level", {
skip_on_cran()
set.seed(42)
data(voters)
census <- readRDS(test_path("data/census_test_nj_block_2010.rds"))
Expand Down Expand Up @@ -131,6 +136,7 @@ test_that("Fails on missing geolocation", {
})

test_that("Handles zero-pop. geolocations", {
skip_on_cran()
set.seed(42)
data(voters)
census <- readRDS(test_path("data/census_test_nj_block_2010.rds"))
Expand Down

0 comments on commit 66e28cc

Please sign in to comment.