Description Usage Arguments Value Examples
A shiny module to manage a settings file stored as xml in the www folder of the package
1 2 3 | mod_edit_settingsInput(id)
mod_edit_settings(input, output, session, settingsdata, package)
|
id |
shiny id |
input |
internal |
output |
internal |
session |
internal |
settingsdata |
the reactive xml settings file |
package |
package where the xml config file is |
the modified reactive xml settings file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Not run:
library(shiny)
library(xml2)
if (interactive()) {
ui <- fluidPage(
mod_edit_settingsInput("config")
)
server <- function(input, output, session) {
initsetsdata <- reactive(read_xml(system.file("www/config.xml", package = "manageR")))
setsdata <- callModule(mod_edit_settings,
"config",
settingsdata = initsetsdata,
package = "manageR")
}
shinyApp(ui, server)
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.