Learn R Programming

cookies (version 0.2.3)

cookie_dependency: Attach the js-cookie javascript library for shiny

Description

Add the js-cookie Javascript library as an HTML dependency, and make cookies available in the shiny input object.

Usage

cookie_dependency()

Arguments

Value

An htmltools::htmlDependency(), which shiny uses to add the js-cookie Javascript library exactly once.

Details

Call this function within your shiny ui to attach the necessary JavaScript code.

Examples

Run this code
cookie_dependency()

Run the code above in your browser using DataLab