glue_warn: glue::glue wrapper that warns when items evaluate to NULL

glue_warnR Documentation

glue::glue wrapper that warns when items evaluate to NULL

Description

glue::glue wrapper that warns when items evaluate to NULL

Usage

glue_warn(
  ...,
  .sep = "",
  .envir = parent.frame(),
  .open = "{",
  .close = "}",
  .na = "NA"
)

Arguments

...

Arguments passed on to glue::glue

.transformer

[function]
A function taking three parameters code, envir and data used to transform the output of each block before during or after evaluation. For example transformers see vignette("transformers").

.trim

[logical(1): ‘TRUE’]
Whether to trim the input template with trim() or not.

.sep

[character(1): ‘""’]
Separator used to separate elements.

.envir

[environment: parent.frame()]
Environment to evaluate each expression in. Expressions are evaluated from left to right. If .x is an environment, the expressions are evaluated in that environment and .envir is ignored. If NULL is passed it is equivalent to emptyenv().

.open

\['character(1)': ‘\{’]
The opening delimiter. Doubling the full delimiter escapes it.

.close

\['character(1)': ‘\}’]
The closing delimiter. Doubling the full delimiter escapes it.

.na

[character(1): ‘NA’]
Value to replace NA values with. If NULL missing values are propagated, that is an NA result will cause NA output. Otherwise the value is replaced by the value of .na.


LukasWallrich/rNuggets documentation built on Aug. 26, 2022, 11:03 a.m.