Convert input to inline class string
Arguments
- x
character
.- n
integer(1)
orInf
. Maximum number of elements to include.- class
character(1)
. Inline style class.
Examples
x <- c("aaa", "bbb", "ccc", "ddd")
x <- toInlineString(x, n = 3L)
x
#> [1] "{.val aaa}, {.val bbb}, {.val ccc}..."