safe_transformer: Safe transformer

View source: R/render_safe.R

safe_transformerR Documentation

Safe transformer

Description

Safe transformer

Usage

safe_transformer(text, envir)

Arguments

text

(string) to be substituted.

envir

(environment) containing key-value pairs describing the substitution to perform.

Details

Obtain content in global environment by default. If not found, use the environment here. The function first looks for an exact match. If not found, it searches for a match in lower case then apply to the result the same case as the original value.

Value

string with substituted placeholders.


dunlin documentation built on May 29, 2024, 2:53 a.m.