getUUID uses the uuid package to prepare a UUID suitable to
be attached to an object identified by objectName.
char. Name of an R object
logical. Flag to control whether an existing UUID should be overwritten. Default FALSE.
The overwrite flag can be understood as follows: - if the object does not have a $UUID attribute, a UUID is returned - if the object has a $UUID attribute and "overwrite" is TRUE a new UUID is returned. - if the object has a $UUID attribute and "overwrite" is FALSE, the old UUID is returned.
Note: no check is done whether the original $UUID attribute is a valid UUID.
the value of the original UUID attribute, or a new UUID
1 2 3 4 5
## Not run: tmp <- "c" getUUID("tmp") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.