Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/colearendt/shinycookie
Cookies in Shiny
https://github.com/colearendt/shinycookie
javascript r r-package shiny
Last synced: about 2 months 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 (over 3 years ago)
- Last Synced: 2024-10-11T18:23:17.266Z (2 months ago)
- Topics: javascript, r, r-package, shiny
- Language: R
- Homepage:
- Size: 53.7 KB
- Stars: 11
- Watchers: 3
- 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
[![Travis build status](https://travis-ci.org/colearendt/shinyCookie.svg?branch=master)](https://travis-ci.org/colearendt/shinyCookie)
[![Codecov test coverage](https://codecov.io/gh/colearendt/shinyCookie/branch/master/graph/badge.svg)](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)