R/0aux.R

Defines functions is_instrumentation_key

Documented in is_instrumentation_key

#' Check if string matches pattern for an instrumentation key.
#' @param x A string containing nothing else but an instrumentation key.
#' @return Logical value.
#' @export
is_instrumentation_key <- function(x) {
  grepl('[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{8}', x)
}

Try the AzureAppInsights package in your browser

Any scripts or data that you put into this service are public.

AzureAppInsights documentation built on July 9, 2023, 7:23 p.m.