R Shiny app shows old data

后端 未结 3 1445
无人及你
无人及你 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:40

    I have been struggling with this problem for quite a while, and thought I had tried everything, including putting a js button on the shiny sidebar to manually refresh (unfortunately that did not work either). There are two things that did work for me:

    1. Make sure all code to read data from files is in a code chunk with name global OR

    2. Manually restart the shiny server when new data is uploaded

    Obviously the first one is much more manageable, and a solution that I wish I had known weeks ago when I started playing with workarounds.

提交回复
热议问题