validate_length: Validate Length Match

View source: R/utils-validation.R

validate_lengthR Documentation

Validate Length Match

Description

Validate Length Match

Usage

validate_length(x, expected_length, arg_name = "value", allow_single = TRUE)

Arguments

x

Vector to validate.

expected_length

Expected length.

arg_name

Argument name for error messages.

allow_single

Allow single value (will be recycled).


cograph documentation built on April 1, 2026, 1:07 a.m.