JohnCoene/waiter
소개
Shiny용 로딩 화면
기타 프로젝트측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalThe 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 | Attendant |
|---|---|---|---|---|
| Progress Bar | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
| Full Screen | :heavy_check_mark: | :heavy_check_mark: | :heavy_multiplication_x: | :heavy_multiplication_x: |
| Works with waiter | :heavy_check_mark: | :heavy_multiplication_x: | :heavy_check_mark: | :heavy_check_mark: |
| Spinner | :heavy_check_mark: | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_multiplication_x: |
| Updatable | :heavy_check_mark: | :heavy_multiplication_x: | :heavy_multiplication_x: | :heavy_check_mark: |
| Notifications | :heavy_multiplication_x: | :heavy_check_mark: | :heavy_multiplication_x: | :heavy_multiplication_x: |
Examples
Below are simple examples of applications that use the package, consult the website for more.
Waiter
To use the waiter:
- Include
useWaiterin your UI. - Trigger
waiter_showto show the waiting screen. - Eventually trigger
waiter_hideto hide the loading screen.
library(shiny)
library(waiter)
ui <- fluidPage(
useWaiter(), # 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:
- Include
use_waitressin your UI. - Initialise a waitress from the
Waitressobject with thenewmethod. - You must then call the
start. - On the waitress object use the
increasemethod to increase the progress bar. - Use the
hidemethod when done.
library(shiny)
library(waiter)
ui <- fluidPage(
useWaitress(),
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.
관련 프로젝트 살펴보기
불러오는 중…
