moustache: evaluate expressions in a string using a particular...

Description Usage Arguments Examples

Description

evaluate expressions in a string using a particular environment

Usage

1
moustache(string, bindings = rlang::env_parent())

Arguments

string

a character string which presumably contains some moustaches referring to objects found in the bindings environment.

bindings

an environment or list in which the objects moustached in string are defined.

Examples

1
2
checkr:::moustache("hello")
checkr:::moustache("Three plus five is {{3+5}}.")

dtkaplan/checkr documentation built on May 15, 2019, 4:59 p.m.