nbsp()
generates a string of HTML non-breaking spaces (
).
Arguments
- n
Number of non-breaking spaces. Defaults to 1
.
Value
A character string containing n
HTML non-breaking spaces
(
).
Examples
# One non-breaking space
nbsp()
#> [1] " "
nbsp(1)
#> [1] " "
# Several non-breaking spaces
nbsp(n = 2)
#> [1] " "
nbsp(n = 5)
#> [1] " "
# When `n` is zero, an empty string is returned.
nbsp(n = 0)
#> [1] ""