check_images {One4All} | R Documentation |
This function checks if the input string contains an image URL (PNG or JPG) and formats it as an HTML img tag with a specified height.
check_images(x)
x |
A character string to check for image URLs. |
A character string with the HTML img tag if an image URL is found, otherwise the input string.
check_images("https://example.com/image.png")
check_images("https://example.com/image.jpg")
check_images("https://example.com/text")