Generate a new unique identifier.
Details
Identifiers are made using the uuid::UUIDgenerate()
.
Examples
# create new id
i <- new_id()
# print id
print(i)
#> id: af4c1a8e-8aa0-4432-b8bc-fe78e95d4fbb
# convert to character
as.character(i)
#> [1] "af4c1a8e-8aa0-4432-b8bc-fe78e95d4fbb"
# check if it is an Id object
is.Id(i)
#> [1] TRUE