Description Usage Arguments Value Examples
'compute_id' calculates an unique identifier based on the contents of the object 'x'.
the default implementation of 'compute_id' uses the __sha1__ algorithm implemented in [digest::digest].
'as_id' turns a 40-character string into an identifier.
'is_id' tests whether 'x' is an identifier.
'long' forces printing of all 40 characters of an identifier.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | compute_id(x)
## Default S3 method:
compute_id(x)
as_id(x)
is_id(x)
## S3 method for class 'identifier'
print(x, ...)
## S3 method for class 'identifier'
toString(x, ...)
long(x)
match_short(short, store)
|
x |
object to compute identifier for ('compute_id'), the identifier to print or cast to 'character' ('print' and 'toString'), a 'character' value to cast as an identifier ('as_id') or a value to be tested ('is_id'). |
... |
Arguments passed on to
|
short |
8-character string to match. |
store |
object store where 'short' is expected to be matched. |
Object of class '"identifier"'.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.