Title: | Convert 'HTML' to 'R' with a 'Shiny' App |
---|---|
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. |
Authors: | 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 <[email protected]> |
License: | GPL-3 |
Version: | 0.1.0 |
Built: | 2024-11-21 03:04:11 UTC |
Source: | https://github.com/stla/html2r |
Shiny app allowing to convert HTML code to R code.
html2R(file, theme = "cobalt", fontSize = 16)
html2R(file, theme = "cobalt", fontSize = 16)
file |
path to a HTML file; can be missing |
theme , fontSize
|
options passed to
|
# 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")) }
# 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")) }