Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

justifier (version 0.2.6)

generate_id: Generate unique identifier(s)

Description

Convenience function to generate a unique identifiers for sources, assertions, justifications, and decisions.

Usage

generate_id(
  type,
  prefix = paste(sample(letters, 4), collapse = ""),
  stopOnIllegalChars = FALSE
)

Value

A character vector containing the identifier(s).

Arguments

type

The type of the justifier object; D, J, A or S.

prefix

An identifier prefix.

stopOnIllegalChars

Whether to base::stop() or produce a base::warning() when encountering illegal characters (i.e. anything other than a letter or underscore).

Examples

Run this code
generate_id(type = "S", 'sourceExample');
generate_id(type = "A", 'assertionExample');

Run the code above in your browser using DataLab