Learn R Programming

shinybusy

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

Installation

Install from CRAN with:

install.packages("shinybusy")

You can install dev version of shinybusy from GitHub:

remotes::install_github("dreamRs/shinybusy")

Examples

Automated busy indicators

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:

add_busy_spinner(spin = "fading-circle")

Other functionalities

Display a loading indicator at the start of the application until it is ready to be used, block application interaction until a calculation is done, send notifications to user, ... See vignette or online website for more.

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)

Copy Link

Version

Install

install.packages('shinybusy')

Monthly Downloads

13,711

Version

0.3.3

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Victor Perrier

Last Published

March 9th, 2024

Functions in shinybusy (0.3.3)

modal-gif

Show a modal with a GIF
notify

Notifications
report

Reports
progress

Create progress indicator
spin_epic

Epic spinners
manual-gif

Manual busy indicator (GIF)
spin_kit

SpinKit spinners
config_report

Configure options for report() and others
html-dependencies

HTML dependencies used by shinybusy
add_loading_state

Loading state for Shiny Outputs
block

Block / unblock an UI element
add_busy_bar

Automatic busy indicator (Progress bar)
add_busy_spinner

Automatic busy indicator (spinner)
config_notify

Configure options for notify() and others
busy-start-up

Busy indicator at start up
block_output

Block an output
add_busy_gif

Automatic busy indicator (GIF)
logo_silex

Silex logo for Shiny use
modal-spinner

Show a modal with a spinner
manual-spinner

Manual busy indicator (spinner)
manual-progressbar

Manual busy indicator (progress bar)
modal-progress

Show a modal with a progress bar