All Projects β†’ JohnCoene β†’ Waiter

JohnCoene / Waiter

Licence: other
πŸ•°οΈ Loading screens for Shiny

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Waiter

Cicerone
πŸ›οΈ Give tours of your Shiny apps
Stars: ✭ 131 (-59.69%)
Mutual labels:  hacktoberfest, shiny, rstats
Emayili
An R package for sending email messages.
Stars: ✭ 72 (-77.85%)
Mutual labels:  hacktoberfest, rstats
Echarts4r
🐳 ECharts 5 for R
Stars: ✭ 378 (+16.31%)
Mutual labels:  hacktoberfest, rstats
Excelr
An Interface to 'jExcel.js' Library
Stars: ✭ 106 (-67.38%)
Mutual labels:  hacktoberfest, shiny
Shinyalert
πŸ—―οΈ Easily create pretty popup messages (modals) in Shiny
Stars: ✭ 148 (-54.46%)
Mutual labels:  shiny, rstats
Plotly
An interactive graphing library for R
Stars: ✭ 2,096 (+544.92%)
Mutual labels:  shiny, rstats
Golem
A Framework for Building Robust Shiny Apps
Stars: ✭ 530 (+63.08%)
Mutual labels:  hacktoberfest, shiny
workshops-setup cloud analytics machine
Tips and Tricks to setup a cloud machine for Analytics and Data Science with R, RStudio and Shiny Servers, Python and JupyterLab
Stars: ✭ 12 (-96.31%)
Mutual labels:  shiny, rstats
r-ladies-ML-1
⭐ Files for my R-Ladies ML workshop - Supervised Learning 101 ⭐
Stars: ✭ 35 (-89.23%)
Mutual labels:  shiny, rstats
Climate Change Data
🌍 A curated list of APIs, open data and ML/AI projects on climate change
Stars: ✭ 195 (-40%)
Mutual labels:  hacktoberfest, rstats
Colourpicker
🎨 A colour picker tool for Shiny and for selecting colours in plots (in R)
Stars: ✭ 144 (-55.69%)
Mutual labels:  shiny, rstats
pirate
πŸ΄β€β˜ οΈ A personal platform for R programming
Stars: ✭ 36 (-88.92%)
Mutual labels:  shiny, rstats
Rtutor
Creating interactive R Problem Sets. Automatic hints and solution checks. (Shiny or RStudio)
Stars: ✭ 141 (-56.62%)
Mutual labels:  shiny, rstats
Shinycssloaders
βŒ› Add loading animations to a Shiny output while it's recalculating
Stars: ✭ 248 (-23.69%)
Mutual labels:  shiny, rstats
Shinyfiles
A shiny extension for server side file access
Stars: ✭ 133 (-59.08%)
Mutual labels:  shiny, rstats
Shinyapps links
A collection of Shiny applications (links shared on Twitter)
Stars: ✭ 109 (-66.46%)
Mutual labels:  shiny, rstats
Shinycustomloader
Add a custom loader for R shiny
Stars: ✭ 97 (-70.15%)
Mutual labels:  shiny, rstats
Anicon
Animated icons for R markdown and Shiny apps
Stars: ✭ 109 (-66.46%)
Mutual labels:  shiny, rstats
Isee
R/shiny interface for interactive visualization of data in SummarizedExperiment objects
Stars: ✭ 155 (-52.31%)
Mutual labels:  hacktoberfest, shiny
waypointer
Waypoints & Animations for Shiny
Stars: ✭ 16 (-95.08%)
Mutual labels:  shiny, rstats

Loading screens for Shiny

Travis build status R-CMD-check CircleCI build status CRAN status

Website | Demo | Get Started | Cheat Sheet

The waiter lets you programmatically show and hide partial or full page loading screens with spinners or loading bars to keep your users patiently waiting as you load or compute fancy things.

Feature Waiter Waitress Hostess
Progress Bar βœ”οΈ βœ”οΈ βœ”οΈ
Full Screen βœ”οΈ βœ”οΈ βœ–οΈ
Works with waiter βœ”οΈ βœ–οΈ βœ”οΈ
Spinner βœ”οΈ βœ–οΈ βœ–οΈ
Updatable βœ”οΈ βœ–οΈ βœ–οΈ
Notifications βœ–οΈ βœ”οΈ βœ–οΈ

Examples

Below are simple examples of applications that use the package, consult the website for more.

Waiter

To use the waiter:

  1. Include use_waiter in your UI.
  2. Trigger waiter_show to show the waiting screen.
  3. Eventually trigger waiter_hide to hide the loading screen.
library(shiny)
library(waiter)

ui <- fluidPage(
  use_waiter(), # include dependencies
  actionButton("show", "Show loading for 3 seconds")
)

server <- function(input, output, session){

  observeEvent(input$show, {

    waiter_show( # show the waiter
      html = spin_fading_circles() # use a spinner
    )

    Sys.sleep(3) # do something that takes time
    
    waiter_hide() # hide the waiter
  })
  
}

shinyApp(ui, server)

The waiter includes more options to customise the spinner, the background, show the waiter on load, etc.

Waitress

To use the waitress:

  1. Include use_waitress in your UI.
  2. Initialise a waitress from the Waitress object with the new method.
  3. You must then call the start.
  4. On the waitress object use the increase method to increase the progress bar.
  5. Use the hide method when done.
library(shiny)
library(waiter)

ui <- fluidPage(
  use_waitress(),
  p("App content")
)

server <- function(input, output){

  # call the waitress
  waitress <- Waitress$
    new(theme = "overlay-percent")$
    start() # start

  for(i in 1:10){
    waitress$inc(10) # increase by 10%
    Sys.sleep(.3)
  }

  # hide when it's done
  waitress$close() 

}

shinyApp(ui, server)

There are more options to the waitress, you can have it overlay any element (such as the navbar), automagically increment it, etc.

Get it

You can install waiter from CRAN.

install.packages("waiter")

Or the development version from Github with:

install.packages("remotes")
remotes::install_github("JohnCoene/waiter")

Please note that the β€˜waiter’ project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].