Learn R Programming

hrr (version 1.1.1)

hr: Prints an horizontal rule.

Description

hr, given a list of symbols, composes with them an horizontal rule that fits the current width of the terminal window. If nothing is passed to it, this function prints the default character (see hrr.symbol option) till the end of your current terminal window. The same happens if symbol is an empty string or a string containing only whitespaces.

Usage

hr(...)

Arguments

...
Symbols that compose the horizontal rule

Value

A list (invisibly).

Examples

Run this code
hr()
hr('*')
hr('-', '#', '-')
hr('', '?', '   ')

Run the code above in your browser using DataLab