Skip to content

kellobri/shiny-feature-toggle

Repository files navigation

Feature Toggle Experiments - Shiny

Feature Toggle: A mechanism to selectively enable and disable features, or control which features are visible to specific user segments.

Inspiration: User privileges and personalized data access application by Jeff Allen - Shiny Gallery example and reference article

  • Shiny applications can access the username and groups of the current user through the session parameter of the shinyServer function.
  • Your application could use this information to display customized messages or to enable functionality for a specific subset of users.
  • Create Dynamic UI elements: The conditionalPanel function, is used in ui.R and wraps a set of UI elements that need to be dynamically shown/hidden.

Presentation: https://speakerdeck.com/kellobri/art-of-the-feature-toggle

Mixing Access Controls & Feature Toggles on RStudio Connect

Application: Notify-Me

  • Problem: How can someone request collaborator access to my Shiny content on RStudio Connect?
  • Solution:
    • Feature toggle: expose an action button to users who aren't part of my collaboration group
    • Action button: trigger a Slack App (Incoming Webhook) to send me a notification

notify-me

Watch a demo of this solution on YouTube

Application: Custom-Visitor-UI

  • Problem: How can I expose a custom landing page to anonymous visitors and users who have been logged out of the server?
  • Solution:
    • Feature toggle: expose a simplified (redacted) version of the UI
    • Provide instructions or action buttons for visitors who want to request user accounts

custom-langing

Watch a demo of this solution on YouTube

Connect with RStudio Solutions Engineering

About

UseR! 2019 - Art of the Feature Toggle (Shiny Application Release Patterns)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published