tests/testthat/test-internalDataLoading.R

# -----------------------------------------------------------------------------
testthat::context("internalData()")

testthat::test_that("dplyr functions work", {
  testthat::expect_no_error({
    IS <- SimpleCountries %>% dplyr::filter(countryCode == "IS")
  })
  testthat::expect_no_error({
    IS <- SimpleCountriesEEZ %>% dplyr::filter(countryCode == "IS")
  })
  testthat::expect_no_error({
    IS <- SimpleTimezones %>% dplyr::filter(countryCode == "IS")
  })
})

Try the MazamaSpatialUtils package in your browser

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

MazamaSpatialUtils documentation built on Nov. 3, 2024, 9:07 a.m.