Nothing
context("mukey.wcs() -- requires internet connection")
test_that("works as expected", {
skip_if_offline()
skip_on_cran()
skip_if_not_installed("sf")
skip_if_not_installed("terra")
x <- NULL
expect_true(inherits(WCS_details("mukey"), 'data.frame'))
suppressWarnings({
# 30m grid
x <- mukey.wcs(aoi = list(aoi = c(-114.16, 47.655, -114.155, 47.66),
crs = 'EPSG:4326'),
db = 'gnatsgo', quiet = TRUE)
})
expect_true(inherits(x, 'SpatRaster') || inherits(x, 'try-error'))
if (inherits(x, 'SpatRaster')) {
# expected dimensions
expect_true(all(dim(x) == c(20, 16, 1)))
# must have a RAT
expect_true(!is.null(terra::levels(x)))
}
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.