Displaying 1 result from an estimated 1 matches for "8d00b17384e69e7c9ecee47e0426b2a5".
2019 May 20
1
WISH: Built-in R session-specific universally unique identifier (UUID)
...if (is.null(id)) {
id <<- make_id(
info = Sys.info(),
pid = Sys.getpid(),
tempdir = tempdir(),
time = Sys.time(),
random = sample.int(.Machine$integer.max, size = 1L)
)
}
id
}
})
Example:
> session_id()
[1] "8d00b17384e69e7c9ecee47e0426b2a5"
> session_id()
[1] "8d00b17384e69e7c9ecee47e0426b2a5"
/Henrik
PS. Having a built-in make_id() function would be handy too, e.g. when
creating object-specific identifiers for other purposes.
PPS. It would be neat if there was an object, or connection, interface
for tools::md5s...