Data object not found when deploying shiny app

前端 未结 3 411
一生所求
一生所求 2021-01-05 04:27

I am working on my first shiny app and am running into an issue where the data that is used to render my data table is not being picked up by shinyapps.io.

The app

3条回答
  •  一整个雨季
    2021-01-05 05:09

    Piggybacking on a previous answer:

    I agree that the problem is that the object "Pitchers" needs to be defined in both shinyServer and shinyUI. Creating a third file called "global.R" may be the best way to solve this problem, since that way you only need to read the database one time (which is faster and nicer to the free shinyapps.io server). See https://shiny.rstudio.com/articles/scoping.html for more information about creating variables with a global scope.

提交回复
热议问题