Description Usage Arguments Value See Also Examples
This is a wrapper function around stringr::str_interp()
and
stringr::str_c()
. It aids in creating useful messages which can
be passed to base::warning()
or base::stop()
, for example, or other
logging functions.
1 | str_msg(..., env = parent.frame())
|
... |
one or more character vectors which are passed to
|
env |
the environment in which to evaluate the expressions. |
an interpolated character string.
stringr::str_interp()
and stringr::str_c()
which this
function wraps for further documenation or examples on string
interpolation or the joining of strings.
1 2 | user_name <- "World"
str_msg("Hello ${user_name}!", "Welcome to tidyverse.")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.