parameterize_template: Create a template with parameters

View source: R/parameterize-template.R

parameterize_templateR Documentation

Create a template with parameters

Description

Create a template with parameters

Usage

parameterize_template(tmpl)

Arguments

tmpl

a template, where parameters are ##highlighted## with double-octothorpes

Examples

greeting_template <- "my name is ##name##, and I am ##age## years old"
greeter <- parameterize_template(greeting_template)
greeter(name = "tarak", age = 36)

tarakc02/getcdw documentation built on April 2, 2022, 4:13 p.m.