Skip to content

ferguskeatinge/shinybusy

 
 

Repository files navigation

shinybusy

Automated (or not) busy indicator for Shiny apps & other progress / notifications tools

version cranlogs Project Status: Active – The project has reached a stable, usable state and is being actively developed. R-CMD-check Codecov test coverage

Installation

Install from CRAN with:

install.packages("shinybusy")

You can install dev version of shinybusy from GitHub:

remotes::install_github("dreamRs/shinybusy")

Examples

Gif

Animate a Gif when server is busy and pause animation when server is idle :

# Somewhere in UI
add_busy_gif(src = "https://jeroen.github.io/images/banana.gif", height = 70, width = 70)

Progress bar

Make an infinite progress bar appear on top of the page when server is busy :

add_busy_bar(color = "#FF0000")

Spinner

Add a spinner when server is busy on top-right corner of the page with:

# UI
add_busy_spinner(spin = "fading-circle")

Classic Shiny:

Shinydashboard:

Shinythemes:

Development

This package use {packer} to manage JavaScript assets, see packer's documentation for more.

Install nodes modules with:

packer::npm_install()

Modify srcjs/exts/busy.js (or other scripts), then run:

packer::bundle()

Re-install R package and try demo applications in examples/.

Other related packages

These packages provide cool alternative to add progress indicator in shiny application :

Acknowledgements

Development of this package was funded by Silex Technologies (https://www.silex-ip.com)

About

Minimal busy indicator for Shiny apps

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • R 48.3%
  • CSS 36.9%
  • JavaScript 14.8%