R/truncateString.R
truncateString.Rd
Truncate a string with ellipsis, if necessary
truncateString(x, n = 200L)
character(1). Character string.
character(1)
integer(1). Maximum number of characters. Function will truncate with "...", when applicable.
integer(1)
"..."
character(1).
Updated 2023-09-21.
https://stackoverflow.com/questions/46759358/
truncateString("abcdefgi", n = 6L) #> [1] "abc..."