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: 48e1e342-c30b-4343-8011-85fcadfbe537
# convert to character
as.character(i)
#> [1] "48e1e342-c30b-4343-8011-85fcadfbe537"
# check if it is an Id object
is.Id(i)
#> [1] TRUE