is_balanced: Tests whether a utility function is balanced

View source: R/assertions.R

is_balancedR Documentation

Tests whether a utility function is balanced

Description

Tests whether there is an equal number of opening and closing brackets in the utility functions.

Usage

is_balanced(string, open, close)

Arguments

string

A character string

open

An opening bracket ( [ or <

close

A closing bracket ) ] or >

Value

A boolean equal to 'TRUE' if the utility expression is balanced


spdesign documentation built on Oct. 18, 2024, 5:07 p.m.