Code Monkey home page Code Monkey logo

vignette-shiny-0.14's Introduction

Shiny 0.14 Updates

The primary goal of this vignette is so CS / Sales can answer the question, "Whats new with Shiny" or demo the new concepts to further driver customer engagement. None of the updates are specifically Pro features.

Shiny 0.14 release to CRAN is planned to be complete and blogged by Sept 2, 2016. Until then, the documentation described below will be accessible at the Shiny Staging Site. The staging url should not be shared with customers. Prior to the CRAN release you will also need to install Shiny from Github.

devtools::install_github("rstudio/shiny")

Some updates described in Bookmarkable State will not work with SSP or RSC. Updates to SSP are planned in 3 releases over the next 2 months: Security Update (no user impact), Parity with OS SS (full support for bookmarkable state), Node.js update (no user impact)

The primary new features are:

In addition, there are many minor additions that will be valuable to users. For instance, Shiny now prints helpful messages if an error is caused by a missing paranthesis, bracket, etc. Another example, you can update the appearance of an action button dynamically (without using ShinyJS).

A full list of features and changes: https://github.com/rstudio/shiny/blob/master/NEWS.md

Bookmarkable State

Article 1 of 3

Bookmarkable State allows a user to save a particular view of an application. The inputs will be caputured when the user clicks bookmark and a custom url will be generated. The url will either embed the inputs or will point to hidden file saved automatically on the server. (This feature is not yet available in Shiny Server Pro or RStudio Connect).

When the user enters the supplied url the app will be initialized with the given inputs. There are some caveats, if the state of your app is not completely defined by the inputs bookmarking won't work. Users can also customize the save and restore functionality.

The power of bookmarkable state compared to shinyURL is that you can save much more complicated states.

Databases

Article 5 of 5

The pool package was written to help users manage connections to databases within Shiny applications dynamically. (Instead of the alternatives, letting all users share a single connection or opening / closing connections for every reactive).

Pool requires the DBI package, which in turn relies on packages with specific database driveres (such as RMySql). However, used with dplyr, the user should not notice a difference between using pool and using a regular DBI connection.

Modals

Article

Modals allow users to create pop-ups that contain instructions, messages, etc. These popups can be triggered off an observeEvent, or they could be used to display messages when the user first opens an app (ie, be sure to attend the RStudio presentation on Monday.) Modals can include arbitrary code elements as well, ie action buttons.

Progress Bars / Notifications

Article

Progress bars have been in Shiny for a longtime. Shiny 0.14 changes how progress bars work behind the scenes which in turn changes their appearance. There is also a new option to display notifications. Notifications present messages to users and are transient (by default they disappear after 5 seconds).

insertUI / removeUI

Addition to Dynamic UI Article

insertUI and removeUI allow users to dynamically generate multiple UI elements (as opposed to renderUI which is always linked to 1 UI element.) insertUI and removeUI can be used when you want to generate conditional user inputs (ie checkboxes for all files in a folder). Used in conjunction with modules they allow users to create complex apps.

vignette-shiny-0.14's People

Watchers

 avatar  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.