Learn R Programming

midas (version 1.0.1)

turn_shiny: Turns a string of html into the equivalent shiny code

Description

Turns a string of html into the equivalent shiny code

Usage

turn_shiny(html, remove_newlines = TRUE, file = NULL)

Arguments

html

a string of complete html

remove_newlines

whether or not to remove newlines from the string

file

default (NULL) is to return the object, if this is set it will write to file

Value

a function call that produces the equivalent shiny objects

Examples

Run this code
html <- '<div class="example"><h3>test</h3></div>'
turn_shiny(html)
eval(turn_shiny(html))

Run the code above in your browser using DataLab