tests/testthat/test-client.R

test_that("Specified connection works", {
  skip_if_offline()
  wfs <- create_biology_wfs()
  expect_s3_class(wfs, c("WFSClient", "OWSClient", "OGCAbstractObject", "R6"))
  expect_identical(wfs$getUrl(), "https://geo.vliz.be/geoserver/Emodnetbio/wfs")
})

test_that("Error when wrong service", {
  expect_snapshot_error(emodnet_init_wfs_client("blop"))
})

Try the emodnet.wfs package in your browser

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

emodnet.wfs documentation built on Aug. 8, 2025, 6:20 p.m.