-
Notifications
You must be signed in to change notification settings - Fork 1.9k
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
SelectInput loading slow 60000 items #1963
Comments
See the section on server-side selectize here: https://shiny.rstudio.com/articles/selectize.html |
Thanks jcheng5. I have changed the code according to the server-side selectize. But i got following error. Error in .getReactiveEnvironment()$currentContext() : Do I need to put updateSelectizeInput(session, 'Genes', choices = c('Select Gene', as.list(GeneNames)), server=TRUE) into observe function? I have placed it in server function. Thanks. |
Yes, you need to put EDIT: sorry, I was wrong -- it doesn't need to go in an observe function. Here's a minimal example: shinyApp(
fluidPage(
selectizeInput("foo", "Foo", choices = NULL)
),
function(input, output, session) {
updateSelectizeInput(session, 'foo', choices = c("a", "b"), server = TRUE)
}
) |
Hi wch, ui.R
server.R
Anything wrong with the code? Many thanks. |
The problem is that the |
Hi,
I am using development version of shiny 1.0.5.9000. I have 60000 items in my selectInput and its extremely slow.
Here is the code:
sever.R
ui.R
The GeneNames is the list of 60000 genes. I have also used selectizeInput but still very slow.
Any idea How I can improve the loading time.
Many thanks.
The text was updated successfully, but these errors were encountered: