This function aims to simplify the typing of code to create hyperlink text in a Shiny app. It is useful especially when there are a lot of hyperlink texts to be typed in a Shiny app's UI.

getlink(url, label)

Arguments

url

A valid URL in string

label

A string to label the URL

Examples

getlink("https://datain360.com", "Dewi's web")
#> <a href="https://datain360.com" class="externallink">Dewi's web</a>