Skip to contents

Creates a random identifier from a-zA-Z. This function is used internally to generate unique identifiers for HTML elements.

Usage

create_id(n = 10, prefix = "")

Arguments

n

Length of the id (default: 10)

prefix

Optional prefix to add to the random ID

Value

A random id string

Examples

if (FALSE) { # \dontrun{
create_id()
create_id(15)
create_id(8, prefix = "app_")
} # }