Learn R Programming

dtlg (version 0.0.2)

nbsp: Generate Non-Breaking Spaces for HTML Output

Description

nbsp() generates a string of HTML non-breaking spaces ( ).

Usage

nbsp(n = 1L)

Value

A character string containing n HTML non-breaking spaces ( ).

Arguments

n

Number of non-breaking spaces. Defaults to 1.

Examples

Run this code
# One non-breaking space
nbsp()
nbsp(1)

# Several non-breaking spaces
nbsp(n = 2)
nbsp(n = 5)

# When `n` is zero, an empty string is returned.
nbsp(n = 0)

Run the code above in your browser using DataLab