Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/colearendt/shiny-auto-refresh

JavaScript auto-refresh playground in a Shiny app
https://github.com/colearendt/shiny-auto-refresh

dashboard javascript refresh shiny timer

Last synced: about 1 month ago
JSON representation

JavaScript auto-refresh playground in a Shiny app

Awesome Lists containing this project

README

        

# Shiny Auto Refresh

Per [this community
discussion](https://community.rstudio.com/t/auto-refresh-persistently-displayed-shiny-app-when-new-version-is-deployed-to-rstudioconnect/50513?u=cole),
dashboards that are shown / auto-updating on monitors have the occasional need
to refresh automatically. The simplest way to do so is with a timer that
auto-reloads the app every X minutes.

This app shows a simple pattern for how to accomplish using `shinyjs` to embed
a timer into the frontend of the application (using `setTimeout()`).

The JavaScript could easily be added as a `` tag in the HTML, as well.