Sprintfl: Produce string by substituting placeholders

View source: R/Rdata.R

SprintflR Documentation

Produce string by substituting placeholders

Description

The function behaves similar to sprintf, except that character sequences to be substituted are indicated by name. To be implemented: *-specifications

Usage

Sprintfl(.fmt, values, sprintf_cartesian = FALSE, envir = parent.frame())

Arguments

.fmt

formatting string into which values are interpolated (see details)

values

list or vector of values to be used for interpolation

sprintf_cartesian

boolean to indicate whether cartesian product of values should be used. Otherwise standard recyling rules apply.

envir

environment in which values are to be evaluated

Details

#@param s template string #@param d values to substitute into s #@param template template for substitution pattern. Within this pattern __DICT_KEY__ is # substituted for a key in d. This string k is substituted in s with d[[k]].

Value

Interpolated character string


sboehringer/package documentation built on Jan. 12, 2023, 6:33 a.m.