turn_shiny {midas}R Documentation

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

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

[Package midas version 1.0.1 Index]