Skip to contents

Ensures that an ID postfix is available, either using the provided value or generating a random one.

Usage

ensure_id_postfix(postfix)

Arguments

postfix

Character string when set by user, else NULL

Value

The postfix or a random postfix

Examples

if (FALSE) { # \dontrun{
# Returns a random ID
ensure_id_postfix(NULL)

# Returns "myid"
ensure_id_postfix("myid")
} # }