getuuid {Ruuid}R Documentation

Functions to handle unique IDs

Description

These functions allow a user to retrieve and transform universally unique ID values. A user can get a new UUID, as well as transform a string representation into a byte representation and vice versa.

Usage

getuuid(cur)

Arguments

cur If provided, either a UUID string or a uuidt object

Details

This package uses Theodore Ts'o's libuuid to generate universally unique ID values. A unique ID value is represented in R by the class uuidt, which wraps the byte values. A wrapper object is the most common method of handling these values, Ruuid - which also provides for a string representation of the UUID.

If no parameter cur is passed into getuuid, a new Ruuid is generated. If either a string or a uuidt object is passed in, then the complementary piece is generated and the resultant Ruuid is generated.

Value

getuuid: Returns an object of class Ruuid.

Author(s)

R. Gentleman and Jeff Gentry

References

Theodore Ts'o's Universally Unique ID library
http://web.mit.edu/tytso/www/home.html

See Also

Ruuid, uuidt

Examples

z <- getuuid()
z
a <- getuuid(as.character(z))
a
q <- getuuid(uuid(z))
q
w <- getuuid()
w

[Package Ruuid version 1.4.2 Index]