create_percentage_feature_flag: Creates an instance of a percentage feature flag with a...

View source: R/feature_flag-percentage.R

create_percentage_feature_flagR Documentation

Creates an instance of a percentage feature flag with a specified chance of being enabled

Description

Creates an instance of a percentage feature flag with a specified chance of being enabled

Usage

create_percentage_feature_flag(percentage)

Arguments

percentage

chance of being enabled e.g. 1 for always being enabled

Value

feature flag object of the percentage type

Examples

{
  always_enabled_flag <- create_percentage_feature_flag(percentage = 1)
  randomly_enabled_flag <- create_percentage_feature_flag(percentage = 0.5)
}

szymanskir/featureflag documentation built on June 9, 2025, 4:45 p.m.