tests/testthat/helper_zoning.R

expect_map_equal <- function(map, expected_map) {
  actual <- quasi_label(rlang::enquo(map))
  expect <- quasi_label(rlang::enquo(expected_map))
  expect_identical_crs(map, expected_map, label = actual$lab, expected.label = expect$lab)
  expect_equal(map, expected_map, label = actual$lab, expected.label = expect$lab, tolerance = 1e-3)
}

skip_zoning_test <- function() {
  if (identical(Sys.getenv("TEST_ZONING"), "true")) {
    return(invisible(TRUE))
  }
  skip("Skipping zoning test")
}

Try the GeoFIS package in your browser

Any scripts or data that you put into this service are public.

GeoFIS documentation built on Oct. 5, 2022, 5:06 p.m.