tag_assert | R Documentation |
tag
This function check the condition of a tag
object.
tag_assert(tag, condition = "tag", type = "abort")
tag |
a GeoPressureR |
condition |
condition to assert |
type |
Message type to display. One of |
logical indicating the tag
object has the relevant element
withr::with_dir(system.file("extdata", package = "GeoPressureR"), {
tag <- tag_create("18LX", quiet = TRUE) |> tag_label(quiet = TRUE)
})
tag_assert(tag)
tag_assert(tag, "stap")
tag_assert(tag, "setmap", type = "warn")
tag_assert(tag, "map_pressure", type = "inform")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.