-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot change value of locked binding for 'set_loader' #113
Comments
It looks like you are looking at a very outdated documentation. May I ask where you saw this? See the correct code the latest version below. library(shiny)
library(waiter)
# diagonal line
path <- "M10 10L90 30"
ui <- fluidPage(
useWaiter(),
useHostess(),
actionButton("draw", "redraw"),
plotOutput("plot")
)
server <- function(input, output) {
dataset <- reactive({
input$draw
hostess <- Hostess$new(min = 0, max = 10)
hostess$set_loader(
hostess_loader(
progress_type = "stroke",
stroke_color = hostess_stripe()
)
)
waiter <- Waiter$new(
"plot",
html = hostess$get_loader()
)
waiter$show()
for(i in 1:10){
Sys.sleep(.2)
hostess$inc(1)
}
runif(100)
})
output$plot <- renderPlot(plot(dataset()))
}
shinyApp(ui, server) |
@JohnCoene I find the example under |
JohnCoene
added a commit
that referenced
this issue
Jan 23, 2022
Thank you. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to run the example from the help page for hostess but it is returning me an error.
This is the error.
This is my
sessionInfo()
-The text was updated successfully, but these errors were encountered: