template: Templates

Description Usage Arguments Examples

Description

Define error and warning templates.

Usage

1
2
3
template.e(pat = "%s")

template.w(pat = "%s")

Arguments

pat

Pattern to use, must include %s, forwarded to sprintf().

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
msg <- "Something's wrong" 

# default
e(msg)

# template
template.e("Whoops: %s - sorry!")
e(msg)

# reset
template.e()

erratum documentation built on Jan. 4, 2022, 1:08 a.m.