The shinycookie package uses the js-cookie library to write cookies in Shiny applications without writing JavaScript.
- Initialize
shinycookiein your UI withinitShinyCookie("myid") - Access cookies from the server with
input$myid(for a list of all cookies) orinput$myid$mycookiefor a specific cookie - Update cookies from the server with the
updateCookiefunction
Install the development version:
devtools::install_github("colearendt/shinycookie")