ems: Wrap text in em dashes

Description Usage Arguments Value Examples

View source: R/symbols.R

Description

Wrap text in em dashes

Usage

1

Arguments

...

Character. Text to go between em dashes, and any other arguments to be passed to glue.

Value

Character. String surrounded in em dashes.

ems is a wrapper for glue, so you can use curly bracket notation and multiple character strings just like with glue.

Examples

1
2
3
4
5
6
7
8
9
ems("hello world")
ems("hello ", "world")
fname <- "Darth"
lname <- "Vader"
ems("hello there {fname} {lname}")
ems(
  "hello {fname} {lname}, ",
  "I says to him"
)

BenjaminWolfe/typewritr documentation built on Nov. 23, 2019, 11:18 a.m.