limpiar_link_click: Prepare a URL column to be clickable in Shiny/Data Table

View source: R/limpiar_link_click.R

limpiar_link_clickR Documentation

Description

Will allow you to click the hyperlink to load a URL, e.g. for selecting an image.

Usage

limpiar_link_click(df, url_var)

Arguments

df

Data Frame or Tibble Object

url_var

URL Column

Details

Make sure that DataTable is rendered with the argument 'escape = FALSE' or column will be all text.

The function now checks if your url_var was a clickable link, and if it is then it won't add any new formatting.

Value

data frame with URL column edited to be clickable

Examples

df <- LimpiaR::limpiar_examples[1, ]
df["mention_url"]

df <- df %>% limpiar_link_click(mention_url)
df["mention_url"]


jpcompartir/LimpiaR documentation built on Dec. 9, 2024, 9:43 p.m.