Skip to contents

Convert input to inline class string

Usage

toInlineString(x, n = 5L, class = "val")

Arguments

x

character.

n

integer(1) or Inf. Maximum number of elements to include.

class

character(1). Inline style class.

Value

character(1).

Note

Updated 2021-09-13.

Examples

x <- c("aaa", "bbb", "ccc", "ddd")
x <- toInlineString(x, n = 3L)
x
#> [1] "{.val aaa}, {.val bbb}, {.val ccc}..."