check_pattern: Check input against acceptable input pattern

check_patternR Documentation

Check input against acceptable input pattern

Description

Checks an input_value against a regex pattern to determine if the input_value is valid. This method is used internally and not for intended for general use.

Usage

check_pattern(I, input_value, match)

## S4 method for signature 'mw_input_item'
check_pattern(I, input_value, match)

Arguments

I

An mw_input_item.

input_value

The value for the input item (character).

match

The type of match. One of "exact" or "partial".

Value

TRUE if input matches the pattern, or throws an error.

Examples

check_pattern(input_item$study_id,'ST000001','exact')

computational-metabolomics/metabolomicsWorkbenchR documentation built on July 5, 2024, 10:12 a.m.