Nothing
#' @rdname uuid
#' @title Environment variables for UUIDs
#' @description `envvar_get_uuid()` gets a UUID from an environment variable
#' @inheritParams envvar_get
#' @return An object of the class `"UUID"` representing a vector of UUIDs.
#' @export
#' @examples
#'
#' # Get a file path and make sure it exists
#' envvar_set("DEMO_GUID" = "d647f20f-c44c-4914-8255-9eca97150d4c")
#' envvar_get_uuid("DEMO_GUID")
envvar_get_uuid <- function(x,
default = NULL,
validate = NULL,
warn_default = TRUE) {
rlang::check_installed("uuid")
envvar_get(
x,
default = default,
transform = function(x) {
uuid <- uuid::as.UUID(x)
if (rlang::is_na(uuid)) {
cli::cli_abort(
message = "{.val {x}} is not a valid UUID",
class = "envvar_invalid_uuid"
)
}
uuid
},
validate = validate,
warn_default = warn_default
)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.