Giter VIP home page Giter VIP logo

shiny-reload's Introduction

Shiny (auto) reloading

This repository contains some experiments around (auto) reloading of Shiny apps. Each example can be run with shiny::runApp(name). Check the code comments and read the text below to learn what the example demonstrates.

reload

Whenever the timestamp of app.R is updated, Shiny will source it again the next time the app page is loaded or refreshed. This is a default behavior which does not require any additional setup; it different from automatic reloading enabled with options(shiny.autoreload = TRUE).

Try these steps:

  1. Run the example with shiny::runApp("reload"). Observe the output in the console.
  2. Open the app in the browser.
  3. Modify the "Hello!" message in app.R.
  4. Refresh the page.

wrap

The default reloading behavior showed in the reload example has some quirks. See the investigate reloading issue in Rhino for an explanation of this example.

full

This example demonstrates a complete solution for proper (auto) reloading in Shiny. It simulates a setup used by Rhino.

shiny-reload's People

Contributors

kamilzyla avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.