## NOTE: Examples are wrapped in `\dontrun{}` as function requires a large
## amount of data which is not included in the package.
if (FALSE) {
library(terra)
getf <- "WBD_National_GDB.gdb"
# check the layer name to read
terra::vector_layers(getf)
test1 <- process_huc(
getf,
layer_name = "WBDHU8",
huc_level = "huc8"
)
test2 <- process_huc(
getf,
layer_name = "WBDHU8",
huc_level = "huc8"
)
test3 <- process_huc(
"",
layer_name = NULL,
huc_level = NULL,
huc_header = NULL,
id = "030202",
type = "huc06"
)
}
Run the code above in your browser using DataLab