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: 3ef6716c-8307-4336-8a5c-f3ce63392e6c
# convert to character
as.character(i)
#> [1] "3ef6716c-8307-4336-8a5c-f3ce63392e6c"
# check if it is an Id object
is.Id(i)
#> [1] TRUE