R Shiny app shows old data

后端 未结 3 1426
无人及你
无人及你 2021-01-12 08:16

I have shiny app, which is displaying old data (4 days delay!) though on the server data are refreshed (current day).

What is strange the old dataset does not exist

3条回答
  •  广开言路
    2021-01-12 08:43

    This is an old question, however, in case anyone has this issue and stumbles across this question here an answer embedded deep in the closed issues of the shiny development.

    Solution

    Your UI is probably not a function, and so it is being cached by Shiny for performance reasons. If you don't want the caching, just make it into a function (however, this does mean that you lose the slight performance benefit of UI caching).

    Turn this:

    ui <- fluidPage(...)
    

    into this:

    ui <- function(req) {
      fluidPage(...)
    }
    

提交回复
热议问题