Nothing
#' kill_simulations UI Function
#'
#' @description A shiny Module.
#'
#' @param id,input,output,session Internal parameters for {shiny}.
#'
#' @noRd
#'
#' @importFrom shiny NS tagList
mod_kill_simulations_ui <- function(id) {
ns <- NS(id)
tagList(
actionButton(ns("kill_simulations"), "Kill Simulations") %>%
tagAppendAttributes(class = "btn btn-danger")
)
}
#' kill_simulations Server Functions
#'
#' @noRd
mod_kill_simulations_server <- function(id){
moduleServer(id, function(input, output, session){
ns <- session$ns
kill_simulation_button <- reactive({
input$kill_simulations
})
# Return the stop_process reactive value to be used in other modules
return(kill_simulation_button)
})
}
## To be copied in the UI
# mod_kill_simulations_ui("kill_simulations_1")
## To be copied in the server
# mod_kill_simulations_server("kill_simulations_1")
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.