h_parens(x)
(character
)
inputs which should be parenthesized.
Character vector with parentheses, except when x
is a blank string
in which case it is returned unaltered.
h_parens("bla")
#> [1] "(bla)"
h_parens("")
#> [1] ""
h_parens(c("bla", "bli"))
#> [1] "(bla)" "(bli)"