

Library ( shiny ) shinyOptions ( cache = cachem :: cache_disk ( "./app_cache/cache/" )) To do so, add this code to the top of your

Use a disk cache and specify a subdirectory of the application directory as In addition to this change, applications deployed on RStudio Connect should More information on how to using caching is available on the Shiny website. Version 1.6 of the shiny package introduced caching for reactives and render* functions.Ĭaching can greatly improve the performance of an application visited by multiple users by preventing the R process from re-creating identical objects for each visitor. For more information, visit the Shiny Development Input steps to view the plot, they can create a bookmarked URL and share the URL Rather than instructing another user to click through the same For example, a user may select a set of inputs that produces an RStudioĬonnect includes full support for Shiny's bookmarkable state features.īookmarkable state allows users to create and share custom URLs to ShinyĪpplications that will automatically restore the inputs and outputs of anĪpplication. Version 0.14 of the shiny package introduced bookmarkable state. See the Admin Guide sections Credentials for However, in large organizations with hundreds of users and groups, this may notīe true. Single user and session$groups the name of the groups the user is a member of. Most environments have unique usernames where each session$user identifies a To enable functionality for a specific subset of users. Your application could use this information to display customized messages or ShinyServer ( function ( input, output, session ) )
