rName: rName

Description Usage Arguments Value Note Author(s) Examples

Description

Generate names composed of random characters and numbers. There is no guarantee names won't collide, but they are guaranteed to start with a letter. The ratio of letters to LETTERS to numbers should be pretty close to even (26:26:30).

Usage

1
rName(char = 16, ext = NULL)

Arguments

char

The number of characters, not including the optional extension (numeric).

ext

The optional extension, starting with a dot e.g. '.txt' (character).

Value

A length 1 character vector that can be used to name HTML elements or files.

Note

Kind of similar to basename(tempfile("","")), but less rigorous and not hex based.

Author(s)

Jon Katz

Examples

1

jonkatz2/shinyAddOns documentation built on May 19, 2019, 7:30 p.m.