strsubst: Named substitution in strings

Description Usage Arguments Details Value References

View source: R/strexts.R

Description

Simple template mechanism inspired by PEP-0292. Use lists or named character vectors (vectors not tested) as a mapping for substitution.

Usage

1
strsubst(template, map, verbose = getOption("verbose"))

Arguments

template

character with $(VARS)

map

object with [ functionality e.g. a vector. Should return values that can be coerced to character

verbose

print debugging messages when TRUE, default is getOption("verbose")

Details

Substitutions are marked by $(NAME).

Value

character

References

Python-PEP-292 Stackoverflow


doomhammerhell/test-datamart documentation built on Dec. 20, 2021, 1:09 a.m.