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

## Not run: 
Example 1:
df %>% limpiar_link_click(permalink)

Example 2:
limpiar_link_click(data, mention_url)

## End(Not run)

jpcompartir/LimpiaR documentation built on April 6, 2024, 5:22 a.m.