"Units misspecified. Please choose 'm', 'km', or 'ha'"

"DEMunits misspecified. Please choose either 'm', 'km', or 'ha'"
"depthUnits misspecified. Please choose either 'm' or 'ft'"
"thermo_depth cannot exceed maximum waterbody depth"
"Both thermo_high and thermo_low must be provided when thermo_depth is NULL"
"thermo_low and thermo_high values must be numeric."
"thermo_low and thermo_high can't be zero."
"thermo_low must be greater than thermo_high."
"thermo_low and thermo_high cannot exceed maximum waterbody depth"

Error in `file(file, "rt")`: cannot open the connection

test_that("contourPoints input data check", {
expect_error(contourPoints(wrongvect, depths = "z", geometry = "geometry", density = 10), info = "input object must be a polygon or multipolygon shapefile")
expect_error(contourPoints(hull, depths = 1, geometry = "geometry", density = 10), info = "depths must be a character giving the latitude column name")
expect_error(contourPoints(hull, depths = "z", geometry = 1, density = 10), info = "geometry must be a character giving the depth column name")
expect_error(contourPoints(hull, depths = "no", geometry = "geometry", density = 10), info = "The value of 'depths' does not appear to be a valid column name")
expect_error(contourPoints(hull, depths = "z", geometry = "no", density = 10), info = "The value of 'geometry' does not appear to be a valid column name")
expect_error(contourPoints(wrong, depths = "z", geometry = "geometry", density = 10), info = "data in depths column is not formatted as numeric")
expect_error(contourPoints(hull, depths = "z", geometry = "z", density = 10), info = "data in geometry column is not formatted as sfc")
expect_error(contourPoints(hull, depths = "z", geometry = "geometry", density = no), info = "density must be a numeric value")
expect_s3_class(contourPoints(hull, depths = "z", geometry = "geometry", density = 50), class = "data.frame")

"input object must be a polygon or multipolygon shapefile"
"depths must be a character giving the latitude column name"
"geometry must be a character giving the depth column name"
"The value of 'depths' does not appear to be a valid column name"
"The value of 'geometry' does not appear to be a valid column name"
"data in depths column is not formatted as numeric"
"data in geometry column is not formatted as sfc"