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: d1b3329e-c03c-4f53-81b0-a72758765e41
# convert to character
as.character(i)
#> [1] "d1b3329e-c03c-4f53-81b0-a72758765e41"
# check if it is an Id object
is.Id(i)
#> [1] TRUE