count_trailing_spaces {beautier} | R Documentation |
Count the number of spaces before the first character
count_trailing_spaces(line)
line |
line of text |
the number of spaces before the first character
Richèl J.C. Bilderbeek
check_empty_beautier_folder()
# 0
count_trailing_spaces("x")
# 1
count_trailing_spaces(" y")
# 2
count_trailing_spaces(" <")
# 0
count_trailing_spaces("")
# 1
count_trailing_spaces(" ")
# 2
count_trailing_spaces(" ")
check_empty_beautier_folder()