Learn R Programming

hrr

Horizontal rule for R language.

Why?

Because the horizontal rules are the easiest way to split your output into blocks.

Inspired by hr for bash.

Installation

You can install hrr via CRAN.

E.g.,

install.packages('hrr', repos='http://cran.r-project.org')

Otherwise, if you prefer, you can install it via devtools package (link).

library(devtools)
install_github('hrr', username = 'leodido')

How to use it?

Load it.

library(hrr)

Simply call the hr() function.

It will print the the default symbol (i.e., #) till the end of your terminal window.

hr()
#################################### ...

Or define your own symbol.

hr('*')
************************************ ...

You can also make beautiful ASCII patterns.

hr('-', '#', '-')
------------------------------------
####################################
------------------------------------

hr('-#-', '-', '-#-')
-#--#--#--#--#--#--#--#--#--#--#--#-
------------------------------------
-#--#--#--#--#--#--#--#--#--#--#--#-

From the command-line:

TODO

Requirements

The only requirement is the R language (tested in version 3.0.*).

License

This package is released under the terms of the MIT license.

Copy Link

Version

Install

install.packages('hrr')

Monthly Downloads

1

Version

1.1.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Leonardo Di Donato

Last Published

March 10th, 2014

Functions in hrr (1.1.1)

ncols

Computes the maximum width of terminal window.
hr

Prints an horizontal rule.
hrr

hrr provides a simple function, hr, to compose and print beautiful horizontal rules.