oobianom / shinyStorePlus

An R package with in-browser storage for Shiny persistent, synchronized data from the inputs using IndexedDB. Transfer browser link parameters to Shiny input or output values.
https://shinystoreplus.obi.obianom.com
Other
26 stars 3 forks source link
cran data data-structures r r-package shiny

shinyStorePlus R package

TWO MAIN FEATURES: (1) In-browser storage for Shiny persistent, synchronized data from the inputs using IndexedDB. (2) Transfer browser link parameters to Shiny input or output values.

Note: As of version 1.2, shinyStorePlus now stores inputs dynamically generated within the server function.


Official docs link: https://shinystoreplus.obi.obianom.com

Demo 1: View Demo Shiny App

Demo 2: View Demo Shiny App

Transformation of various shiny apps with the shinyStorePlus package: https://github.com/oobianom/aagarw30_shinyapps_to-shinyStorePlus

Start with more simple example code #2: https://github.com/oobianom/shinyStorePlus/tree/main/inst/example/storeInputs

Start with more simple example code #3: https://github.com/oobianom/shinyStorePlus/tree/main/inst/example/browserLinkToInput

Teaser video: https://www.youtube.com/watch?v=gkZfCF4Kr7I

Other packages required for shinyStorePlus: https://depends.rpkg.net/package/shinyStorePlus

Author R scholar profile: https://scholar.rpkg.net/aut/obinna+obianom

CRAN\_Status\_Badge


There has been tremendous contribution from the R community on the topic of storing Shiny data and re-using them within an application. The current solutions include Dropbox, Amazon s3, Googlesheets, SQLite, MongoDB and so on. However, a problem with these methods is that it takes a number of steps in order to correctly program your Shiny application for them. More so, the owner of the accounts may need to consistently monitor the storage accounts to ensure that it is not expire or that the data storage is not exhausted.

So let's face it. When you develop a shiny app that allows a user to change inputs and see the results immediately, guess what the user is itching to have?? The ability to change the inputs and when they refresh or reopen the shiny app at a later time, still see the inputs they previously entered. Well, shinyStorePlus R package gives that!


As of version 0.8 , you are also able to transfer the parameters in a browser link to Shiny inputs and outputs. e.g extracting the value of name from http://127.0.0.1:6692/?data=pressure&name=obinna&num=50&outt=wowowow. See link


Installation and Usage

Install


# From CRAN
install.packages(shinyStorePlus)

# OR from Github
library(devtools)
install_github("oobianom/shinyStorePlus")

Usage

library(shinyStorePlus)

Use example

seeexample()

Demo

Demo screenshot