Pad string with spaces, justified on either the left or right
rvn_stringpad(string, width, just = "r", padstring = " ")
Text string
Number of characters total, including desired spaces
'r' for right, 'l' for left
string to use for padding (default space character)
Padded string
# Returns " To the right"
rvn_stringpad('To the right', 15, just='r')
#> [1] " To the right"
# Returns "Padded "
rvn_stringpad('Padded', 10, just='l')
#> [1] "Padded "