initStore: Initialize shinyStore in an application's UI

Description Usage Arguments

Description

Though shinyStore doesn't have any user-visible elements, you still must initialize it in your application's ui.R file. You should execute this function in your ui.R file to setup the input element associated with your store.

Usage

1
initStore(id, namespace, privateKey = NULL)

Arguments

id

The identifier of the store (determines the name of the store on the input reactive object in your server.R file).

namespace

Not a namespace in the traditional R sense, but rather the identifying prefix to use when storing any object in the browser's local storage. This is the only means by which we can separate data stored for different applications that are being hosted at the same (sub-)domain.

privateKey

the private key to use to decrypt data. Must be provided if you're going to have any encrypted fields.


trestletech/shinyStore documentation built on May 31, 2019, 7:50 p.m.