dot-find_failures: Safely find failure locations in a vector

.find_failuresR Documentation

Safely find failure locations in a vector

Description

Run check_fn(x, check_value) if check_value isn't NULL.

Usage

.find_failures(x, check_value, check_fn)

Arguments

x

The vector to check.

check_value

The value to check against (e.g., a regex pattern). If NULL, the check is skipped.

check_fn

The function to use for checking.

Value

An integer vector of failure locations, or NULL if there are no failures or the check is skipped.


stbl documentation built on Nov. 5, 2025, 6:02 p.m.