Updating the Shiny Webapp

Options
VijayVk
VijayVk Dataiku DSS Core Designer, Registered Posts: 1

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

Tagged:

Answers

  • Alexandru
    Alexandru Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 1,209 Dataiker
    Options

    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,

Setup Info
    Tags
      Help me…