Type: | Package |
Title: | Convert 'HTML' to 'R' with a 'Shiny' App |
Version: | 0.1.0 |
Description: | Provides a 'Shiny' app allowing to convert 'HTML' code to 'R' code (e.g. '<span>Hello</span>' to 'tags$span("Hello")'), for usage in a 'Shiny' UI. |
URL: | https://github.com/stla/html2R |
BugReports: | https://github.com/stla/html2R/issues |
License: | GPL-3 |
Encoding: | UTF-8 |
LazyData: | true |
Imports: | glue, shiny, shinyAce, shinythemes, shinyjqui, stats |
RoxygenNote: | 7.1.1 |
NeedsCompilation: | no |
Packaged: | 2020-09-08 01:04:33 UTC; stla |
Author: | Stéphane Laurent [aut, cre], Chris Andrejewski [ctb, cph] ('Himalaya' library), Boniface Pereira [ctb, cph] ('jquery-confirm' library), Mario Heiderich [ctb, cph] ('DOMPurify' library) |
Maintainer: | Stéphane Laurent <laurent_step@outlook.fr> |
Repository: | CRAN |
Date/Publication: | 2020-09-15 09:50:02 UTC |
Launch the 'html2R' Shiny app
Description
Shiny app allowing to convert HTML code to R code.
Usage
html2R(file, theme = "cobalt", fontSize = 16)
Arguments
file |
path to a HTML file; can be missing |
theme , fontSize |
options passed to
|
Examples
# launch the Shiny app without file ####
if(interactive()) html2R()
# launch the Shiny app with a file ####
if(interactive()){
html2R(system.file("example.html", package = "html2R"))
}