whisker_check: whisker_check

Description Usage Arguments Value See Also Examples

View source: R/whisker_check.R

Description

Check a template for all variables

Usage

1
whisker_check(template, data)

Arguments

template

character; mustache template

data

named list or environment used for template construction

whisker_check validates that all the values for a template are present.

Value

Returns TRUE if all template names are available. False otherwise.

See Also

whisker_names

Examples

1
2
3
  tmpl <- "Hello {{Who}}"
  whisker_check( tmpl, list(Who = "World" ))     # TRUE
  whisker_check( tmpl, list(Person = "World" ))  # FALSE 

decisionpatterns/whisker.tools documentation built on July 1, 2020, 4:18 p.m.