Updating the Shiny Webapp

VijayVk
Level 1
Updating the Shiny Webapp

I have a scenario running that pulls data files into a folder everyday. The resulting files from the folder are pulled into the Webapp  for analysis and plotting using R shiny. The plots in the webapp do not update unless I restart the R shiny backend to refresh the data.  Is there any way that the webapp automatically pulls the files from the folder whenever the files are added with out starting the backend? Thanks!


Operating system used: Windows

0 Kudos
1 Reply
AlexT
Dataiker

Hi @VijayVk ,

You may be able to  use reactivePoll to check the last modified timestamps for the files and refresh your plots if new data is detected. 

. Is the managed folder local or remote?  If it's local you can use time from file.info. If removed you may be able to use dkuManagedFolderPathDetails to find the last modified of files in your folder and refresh the webapp. 


Hope that helps,

0 Kudos