Skip to content
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

shiny issue after app update #151

Open
umasaxena opened this issue Jul 26, 2019 · 2 comments
Open

shiny issue after app update #151

umasaxena opened this issue Jul 26, 2019 · 2 comments

Comments

@umasaxena
Copy link

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]](cond)
    
@jcheng5
Copy link
Member

jcheng5 commented Jul 26, 2019

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants