https://github.com/colearendt/shinycookie
Cookies in Shiny
https://github.com/colearendt/shinycookie
javascript r r-package shiny
Last synced: 26 days ago
JSON representation
Cookies in Shiny
- Host: GitHub
- URL: https://github.com/colearendt/shinycookie
- Owner: colearendt
- License: other
- Created: 2018-08-20T19:47:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-06T01:57:04.000Z (almost 4 years ago)
- Last Synced: 2025-03-17T12:21:56.478Z (28 days ago)
- Topics: javascript, r, r-package, shiny
- Language: R
- Homepage:
- Size: 53.7 KB
- Stars: 11
- Watchers: 2
- Forks: 8
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - colearendt/shinycookie - Cookies in Shiny (R)
README
[](https://travis-ci.org/colearendt/shinyCookie)
[](https://codecov.io/gh/colearendt/shinyCookie?branch=master)
# Shiny CookieThe `shinycookie` package uses the [`js-cookie`](https://github.com/js-cookie/js-cookie) library to write cookies in Shiny applications without writing JavaScript.
- Initialize `shinycookie` in your UI with `initShinyCookie("myid")`
- Access cookies from the server with `input$myid` (for a list of all cookies) or `input$myid$mycookie` for a specific cookie
- Update cookies from the server with the `updateCookie` function## Getting Started
Install the development version:
```r
devtools::install_github("colearendt/shinycookie")
```## Examples
- [Simple example app](./inst/examples/01-cookie-example)