@@ -5,7 +5,7 @@ mapsheets_50_sf <- mapsheets_50K()
55test_that(" list_mapsheet_files works" , {
66 skip_on_cran()
77 skip_if_offline()
8- skip_if(nzchar(Sys.getenv( " SKIP_CATALOGUE_FUNCTION_TESTS " )) )
8+ skip_if_catalogue_function_tests_skipped( )
99
1010 res <- list_mapsheet_files(" https://pub.data.gov.bc.ca/datasets/175624/82g/" )
1111 expect_type(res , " character" )
@@ -31,6 +31,7 @@ test_that("making cded cache directory works", {
3131test_that(" get_mapsheet_tiles works" , {
3232 skip_on_cran()
3333 skip_if_offline()
34+ skip_if_catalogue_function_tests_skipped()
3435
3536 cache_dir <- make_local_cded_cache()
3637
@@ -81,6 +82,7 @@ test_that("get_mapsheet_tiles works", {
8182test_that(" cded works with tiles_50K" , {
8283 skip_on_cran()
8384 skip_if_offline()
85+ skip_if_catalogue_function_tests_skipped()
8486
8587 vrt <- cded(tiles_50K = c(" 102o14" , " 095d01" ))
8688
@@ -97,6 +99,7 @@ test_that("cded works with tiles_50K", {
9799test_that(" cded works with aoi" , {
98100 skip_on_cran()
99101 skip_if_offline()
102+ skip_if_catalogue_function_tests_skipped()
100103
101104 aoi <- st_buffer(
102105 mapsheets_sf [mapsheets_sf $ MAP_TILE_DISPLAY_NAME == " 102o" , ],
@@ -132,6 +135,7 @@ test_that("cded works with aoi", {
132135test_that(" cded works with aoi with a different projection as mapsheets_250K" , {
133136 skip_on_cran()
134137 skip_if_offline()
138+ skip_if_catalogue_function_tests_skipped()
135139
136140 aoi <- st_transform(
137141 st_buffer(
@@ -157,6 +161,7 @@ test_that("cded works with aoi with a different projection as mapsheets_250K", {
157161if (require(" stars" )) {
158162 skip_on_cran()
159163 skip_if_offline()
164+ skip_if_catalogue_function_tests_skipped()
160165
161166 pol1 <- mapsheets_50K()[1 , ]
162167 s <- st_as_stars(pol1 )
@@ -172,6 +177,7 @@ if (require("stars")) {
172177if (require(" terra" )) {
173178 skip_on_cran()
174179 skip_if_offline()
180+ skip_if_catalogue_function_tests_skipped()
175181
176182 pol1 <- mapsheets_50K()[1 , ]
177183 r <- rast(pol1 )
0 commit comments