check_images: Check and format image URLs

View source: R/global.R

check_imagesR Documentation

Check and format image URLs

Description

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.

Usage

check_images(x)

Arguments

x

A character string to check for image URLs.

Value

A character string with the HTML img tag if an image URL is found, otherwise the input string.

Examples

check_images("https://example.com/image.png")
check_images("https://example.com/image.jpg")
check_images("https://example.com/text")

One4All documentation built on July 4, 2024, 1:08 a.m.