gum: A wrapper around 'glue::glue()' to remove 'glue' class.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/utils.R

Description

glue provides string interpolation similar to Python's F-strings, but returned values inherit the glue class. This seems to cause unexpected results in certain environments, e.g. base::cat().

Usage

1
gum(..., .envir = parent.frame())

Arguments

...

character, expressions to format.

.envir

environment in which to evaluate expressions.

Value

character

Author(s)

Brendan Knapp brendan.g.knapp@gmail.com

See Also

glue::glue() glue::glue_data()

Examples

1
2
3
4
5
6
library(salinasr)

my_name <- "Brendan"
my_lang <- "R"

gum("My name is {my_name} and I am using {my_lang}.")

knapply/salinasr documentation built on May 27, 2019, 2:09 p.m.