Abort if the parameter x is not of class wastd_data

verify_wamtram_data(x)

Arguments

x

An object of S3 class wastd_data, e.g. the output of wastdr::download_wastd_turtledata(), optionally filtered to a locality by wastdr::filter_wastd_turtledata(area_name="Thevenard Island").

Examples

if (FALSE) {
# data(wamtram_data)
# verify_wamtram_data(wamtram_data)
testthat::expect_error(verify_wamtram_data(NULL))
testthat::expect_error(verify_wamtram_data(c(1, 2, 3)))
}