shinyapps - Shiny app issue - Reading data into a server.R function -


i have list of 4 large dataframes (size 5.9mb compressed) in rdata file (dtall.rdata) trying read server.r function using code provided below, "error: [on_request_read] connection reset peer" error message" , file read single character "dtall"

when separately load dtall.rdata r global environment app runs locally. clear dtall.rddata file global environment , try app load , run error message above.

i have tried using readrds, not work either, error message: "error in readrds("data/dtall.rdata") : unknown input format

the file dtall.rdata loads correctly outside shiny scripts using function load("data/dtall.rdata"

below code of server.r function

server.r  predictor <-source("predictor.r") dtall <- load("data/dtall.rdata")   shinyserver(function(input, output) {      wordprediction <- reactive({             text <- input$input             wordprediction <- predictor(text)})     output$prediction <- renderprint(wordprediction())  }) 

thank in advance help!


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -