check_feed_value: Abort unless a value is a single string matching a pattern

View source: R/update-feed.R

check_feed_valueR Documentation

Abort unless a value is a single string matching a pattern

Description

The match is on bytes with PCRE and ⁠\\z⁠, so non-ASCII text, a trailing newline and a control character never match.

Usage

check_feed_value(x, pattern, arg, class, hint)

Arguments

x

Value to check.

pattern

PCRE pattern, anchored with ^ and ⁠\\z⁠.

arg

Argument name for the message.

class

Condition class.

hint

Text saying what is accepted.


shinyelectron documentation built on Dec. 3, 2026, 9:07 a.m.