require(shiny)
require(hrimodules)
ui<-fluidPage(radio_buttons_ui("test"),
h4("Underlying Radio Button Value"),
textOutput("values"))
server<-function(input,output,session){
radio<-callModule(radio_buttons_server,id="test")
output[['values']]<-renderText({
req(!is.null(radio$selected()))
radio$selected()})
}
shinyApp(ui,server)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.