is_image | R Documentation |
This function returns TRUE for matchr_image
objects and FALSE for all other
objects.
is_image(x)
x |
An object to test |
A logical scalar, TRUE if x
inherits from class "matchr_image" and
FALSE otherwise.
## Not run:
# Setup
img <- load_image(test_urls)
# TRUE
is_image(img)
# FALSE
is_image("text")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.