powered by
envvar_get_uuid() gets a UUID from an environment variable
envvar_get_uuid()
envvar_get_uuid(x, default = NULL, validate = NULL, warn_default = TRUE)
An object of the class "UUID" representing a vector of UUIDs.
"UUID"
String containing an environment variable name
Optional default value if the environment variable is not set
Optional function that checks a value for validity
Show a warning if the default value is used (default: TRUE)
TRUE
# Get a file path and make sure it exists envvar_set("DEMO_GUID" = "d647f20f-c44c-4914-8255-9eca97150d4c") envvar_get_uuid("DEMO_GUID")
Run the code above in your browser using DataLab