Generate a new unique identifier.
new_id()
Id
object.
Identifiers are made using the uuid::UUIDgenerate()
.
# create new id
i <- new_id()
# print id
print(i)
#> id: 4fd55b80-f1e8-48ab-8aa1-bd6c3264288d
# convert to character
as.character(i)
#> [1] "4fd55b80-f1e8-48ab-8aa1-bd6c3264288d"
# check if it is an Id object
is.Id(i)
#> [1] TRUE