test_that("hydrobasin online", {
expect_error(esp_get_hydrobasin(epsg = 3367))
expect_error(esp_get_hydrobasin(domain = "f"))
skip_on_cran()
skip_if_siane_offline()
skip_if_gisco_offline()
expect_silent(esp_get_hydrobasin(
domain = "landsea",
resolution = "10",
epsg = 3857
))
l <- esp_get_hydrobasin(
resolution = "10",
epsg = 3857
)
expect_true(sf::st_crs(l) == sf::st_crs(3857))
expect_silent(esp_get_hydrobasin(resolution = "10"))
expect_message(esp_get_hydrobasin(resolution = "10", verbose = TRUE))
expect_silent(esp_get_hydrobasin(resolution = "6.5"))
expect_silent(esp_get_hydrobasin(resolution = "3"))
expect_silent(esp_get_hydrobasin(resolution = "6.5", domain = "landsea"))
expect_silent(esp_get_hydrobasin(resolution = "3", domain = "landsea"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.