rstudio / shiny-examples

Other
1.96k stars 3.78k forks source link

shiny issue after app update #151

Open umasaxena opened 4 years ago

umasaxena commented 4 years ago

I updated my shiny app (the first time worked), then started getting the weird filepath error - To give a little bit of the background. I am reading in rds file where a gene list act as input to search through mongodb database.

Any help is appreciated.

It goes like this;

cc=readRDS("./CC.rds") gg=readRDS("./GG.rds") ss=readRDS("./SS.rds")

ui.R

selectizeInput("epiInput","Gene", choices=gg), selectizeInput("cellInput","Tissue", choices=cc), selectizeInput("anygene","Any Gene", choices=ss), helpText("Note: Select gene and cell line tissue of interest"), actionButton("Search", "search")

Error:

runApp() Error in readRDS(nsInfoFilePath) : error reading from connection

The backtrace is given below. I just dont know how to correlate the bactrace output to the error to identify where its occuring.

Backtrace

runApp() Error in readRDS(nsInfoFilePath) : error reading from connection Backtrace: x

  1. -shiny::runApp()
  2. -appParts$onStart()
  3. -shiny:::appObj()
  4. -shiny:::func(fname, ...)
  5. -shiny:::sourceUTF8(fullpath, envir = new.env(parent = globalenv()))
  6. -base::eval(exprs, envir)
  7. -base::eval(exprs, envir)
  8. +-shiny::..stacktraceon..(...)
  9. +-shiny::fluidPage(...)
  10. | +-shiny::bootstrapPage(...)
  11. | | +-htmltools::attachDependencies(...)
  12. | | -htmltools::tagList(...)
  13. | -htmltools::div(class = "container-fluid", ...)
  14. | -tags$div(...)
  15. | -htmltools::tag("div", list(...))
  16. +-shiny::sidebarLayout(...)
  17. +-shiny::mainPanel(...)
  18. | -htmltools::div(class = paste0("col-sm-", width), ...)
  19. | -tags$div(...)
  20. | -htmltools::tag("div", list(...))
  21. +-shiny::tabsetPanel(...)
  22. +-shiny::tabPanel("Crispr", dataTableOutput(outputId = "dep_results"))
  23. | -htmltools::div(...)
  24. | -tags$div(...)
  25. | -htmltools::tag("div", list(...))
  26. -DT::dataTableOutput(outputId = "dep_results")
  27. +-htmltools::attachDependencies(...)
  28. -crosstalk::crosstalkLibs
  29. -base::getExportedValue(pkg, name)
  30. -base::asNamespace(ns)
  31. -base::getNamespace(ns)
  32. -base::tryCatch(loadNamespace(name), error = function(e) stop(e))
  33. -base:::tryCatchList(expr, classes, parentenv, handlers)
  34. -base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
  35. -value[3L]
jcheng5 commented 4 years ago

It looks to me like the crosstalk library has gotten corrupted somehow. Is it possible you installed crosstalk using an older version of R than you are now running? Can you try uninstalling and reinstalling crosstalk, and see if that helps--either to make the app run or at least to get the backtrace to change?

umasaxena commented 4 years ago

Thanks. It required mainly C libraries update and Rcpp. Crosstalk worked file on clean re-install.