Learn R Programming

shiny.destroy (version 0.1.0)

runDestroyExample: Run `shiny.destroy` example

Description

To see how the `shiny.destroy` works, examples are provided within the package.

Usage

runDestroyExample(example = NA, ...)

Value

The shiny application displayed in the specified location.

Arguments

example

The name of the example to run, or NA (the default) to list the available examples.

...

Additional parameters sent to `shiny::runExample`

Details

The following examples are available:

01_boxes

A simple application where the "create" button will load a simple box with a "destroy" button. This highlights the full removal of the module when the button is pressed.

02_sleep

An application that has 2 side by side modules, one using {shiny} to remove the UI and the other using {shiny.destroy} to fully remove the boxes to display the incremental time gain from removing the long-running observers.

Examples

Run this code
if (FALSE) { # interactive()
runDestroyExample("01_boxes")
}

Run the code above in your browser using DataLab