Databunny package is a utility package contains utility functions that is helping rstudio users, shiny developer day to day life.
Features: 1. CPU Memory Usage/Limit rstudio addins. Support windows, linux and container environment. 2. Shiny application disconnection auto reload.
Install databunny library from github
library(devtools) install_github("databunnysg/databunny")
How to use:
CPU Memory Usage and limit shows on viewer pane in background job.
Use this one line of code will auto reconnect shiny page when ever network avaiable again.
disconnectAutoReload() into shiny server block.
Example
library(shiny)
library(shinyjs)
library(databunny)
ui <- fluidPage(
titlePanel("Shiny Auto Reconnect"),
"This shiny app will auto reconnect when ever network available again."
)
server <- function(input, output) {
disconnectAutoReload()
}
shinyApp(ui = ui, server = server)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.