as_glue | R Documentation |
A glue object is a character vector with S3 class "glue"
. The "glue"
class implements a print method that shows the literal contents (rather than
the string implementation) and a +
method, so that you can concatenate with
the addition operator.
as_glue(x, ...)
x |
object to be coerced. |
... |
further arguments passed to methods. |
A character vector with S3 class "glue"
.
x <- as_glue(c("abc", "\"\\\\", "\n"))
x
x <- 1
y <- 3
glue("x + y") + " = {x + y}"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.