Generate a new unique identifier.

new_id()

Value

Id object.

Details

Identifiers are made using the uuid::UUIDgenerate().

Examples

# create new id
i <- new_id()

# print id
print(i)
#> id: 1d3789cd-7346-4aaa-a376-cab7d152ffc5

# convert to character
as.character(i)
#> [1] "1d3789cd-7346-4aaa-a376-cab7d152ffc5"

# check if it is an Id object
is.Id(i)
#> [1] TRUE