dot-interp_braces: Minimal brace-template interpolator

.interp_bracesR Documentation

Minimal brace-template interpolator

Description

Replaces {expr} tokens in template by evaluating expr in envir. Used in .report_api_error() / .report_api_warning() so callers can write hints like "No data for {game_id}" and have {game_id} resolve against the function's frame at the call-site.

Usage

.interp_braces(template, envir = parent.frame())

Arguments

template

character(1).

envir

environment to evaluate expressions against.

Details

Per-token failures (unbound name, parse error) leave the literal {expr} in place rather than erroring, so partial interpolation still produces a useful message.

Value

character(1).


wehoop documentation built on Aug. 25, 2026, 1:06 a.m.