This function check the condition of a tag
object.
Examples
withr::with_dir(system.file("extdata", package = "GeoPressureR"), {
tag <- tag_create("18LX", quiet = TRUE) |> tag_label(quiet = TRUE)
})
tag_assert(tag)
#> [1] TRUE
tag_assert(tag, "stap")
#> [1] TRUE
tag_assert(tag, "setmap", type = "warn")
#> Warning: ✖ The parameters for the geographical and stationary period have not been yet
#> been defined in `tag`.
#> → Use `tag_set_map()` to define them.
tag_assert(tag, "map_pressure", type = "inform")
#> ✖ The pressure likelihood map has not yet been computed for `tag`.
#> → Use `geopressure_map()` to compute the maps.