Learn R Programming

One4All (version 0.5)

check_other_hyperlinks: Check and format non-image hyperlinks

Description

This function checks if the input string contains a non-image hyperlink and formats it as an HTML anchor tag.

Usage

check_other_hyperlinks(x)

Value

A character string with the HTML anchor tag if a non-image hyperlink is found, otherwise the input string.

Arguments

x

A character string to check for non-image hyperlinks.

Examples

Run this code
check_other_hyperlinks("https://example.com/page")
check_other_hyperlinks("https://example.com/image.png")
check_other_hyperlinks("https://example.com/image.jpg")

Run the code above in your browser using DataLab