Resolve the misc$image (or misc$icon) convention on a model object and
report whether the reference can be used. Local paths are checked for
existence; URLs are reported as such without a network round-trip.
Usage
object_image(object, which = c("image", "icon"))Value
A list with path (character, or NULL when nothing is set) and
status, one of "none", "url", "ok" or "missing".
See also
Other commodity:
commodity_properties(),
commodity_property(),
newCommodity()
Examples
COA <- newCommodity("COA", image = "https://example.org/coal.png")
object_image(COA)
#> $path
#> [1] "https://example.org/coal.png"
#>
#> $status
#> [1] "url"
#>
