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

Description Usage Arguments Examples

View source: R/moustache.R

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
checkr2:::moustache("hello")
checkr2:::moustache("Three plus five is {{3+5}}.")

dtkaplan/checkr2 documentation built on May 17, 2019, 4:01 p.m.