uuid {ids}R Documentation

Generate UUIDs

Description

Generate UUIDs using the uuid package. This is simply a thin wrapper around uuid::UUIDgenerate that matches the interface in the rest of the ids package.

Usage

uuid(n = 1, drop_hyphens = FALSE, use_time = NA)

Arguments

n

number of ids to return. If NULL, it instead returns the generating function

drop_hyphens

Drop the hyphens from the UUID?

use_time

Passed through to UUIDgenerate as use.time.

Author(s)

Rich FitzJohn

Examples

# Generate one id
uuid()

# Or a bunch
uuid(10)

# More in the style of random_id()
uuid(drop_hyphens = TRUE)

[Package ids version 1.0.1 Index]