Skip to contents

Creates a unique Identifier. Adapted from crosstalk:::createUniqueId() since it is not an exported function. This id needs to be refreshed at certain times to ensure that the crosstalk widgets stay connected (see also here).

Usage

create_unique_id(bytes = 5)

Arguments

bytes

An integer. Controls the size of the unique id.

Value

A unique character vector.

Examples

create_unique_id(5)
#> [1] "5e8045a1b2"