Coder Social home page Coder Social logo

coronavirus-r's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

coronavirus-r's Issues

Deployment to shinyapps.io — ERROR: An error has occurred.

Symptom

After deploying to shinyapps.io, instead of the plots the warning ERROR: An error has occurred. Check your logs or contact the app author for clarification. is shown.

See here

System info

R version 3.4.4 (2018-03-15)
RStudio: Version 1.0.143 – © 2009-2016 RStudio, Inc.
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/538.1 (KHTML, like Gecko) RStudio Safari/538.1 Qt/5.4.0

Steps to reproduce

1.I followed the Visualize COVID-19 case data in a blink of an eye — using R, Shiny & Plotly tutorial
2. I created a new free account at shinyapps.io,
3. Initially, when I attempted to publish, I saw the following output: Error when trying to deploy to shinyapps.io: application depends on package "crosstalk" but it is not installed. Please resolve before continuing. This is repeated for a number of different packages.
4. Following the advice here, I ran the following in the console:

install.packages(c("crosstalk", "data.table", "fastmap", "hexbin", "htmlwidgets", "httpuv", "httr", "later", "lazyeval", "plotly", "rsconnect", "shiny", "sourcetools"))
  1. I then added the following lines to the beginning of ui.R, just after the libraries shiny and plotly are loaded:
library(crosstalk)
library(data.table)
library(fastmap)
library(hexbin)
library(htmlwidgets)
library(httpuv)
library(httr)
library(later)
library(lazyeval)
library(rsconnect)
library(sourcetools)
  1. During the publish process, I included all the files. (Simply including server.R and ui.R leads to a page with just a <pre> tag error, and no interactive content.)

Log

120: function_list[[k]]
 93: output$cumulatedMetrics
117: _fseq
 12: fn
118: freduce
 13: runApp
116: eval
  7: connect$retry
115: eval
  6: eval
107: func
113: %>%
112: renderPlotly [/srv/connect/apps/corona-app-v1/server.R#78]
  5: eval
111: func

Warning: Error in UseMethod: no applicable method for 'layout' applied to an object of class "request"

121: layout
120: function_list[[k]]
117: _fseq
118: freduce
116: eval
115: eval
107: func
 94: origRenderFunc
113: %>%
 93: output$dailyMetrics
 13: runApp
 12: fn
  5: eval
  6: eval
112: renderPlotly [/srv/connect/apps/corona-app-v1/server.R#78]
  7: connect$retry
111: func

Warning: Error in UseMethod: no applicable method for 'layout' applied to an object of class "request"

121: layout
120: function_list[[k]]
118: freduce
117: _fseq
116: eval
115: eval
112: renderPlotly [/srv/connect/apps/corona-app-v1/server.R#78]
113: %>%
111: func
107: func
 94: origRenderFunc
 93: output$cumulatedMetrics
 13: runApp
 12: fn
  7: connect$retry
  5: eval
  6: eval

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.