Horizontal rule for R language.
Because the horizontal rules are the easiest way to split your output into blocks.
Inspired by hr for bash.
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')
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('-#-', '-', '-#-')
-#--#--#--#--#--#--#--#--#--#--#--#-
------------------------------------
-#--#--#--#--#--#--#--#--#--#--#--#-
TODO
The only requirement is the R language (tested in version 3.0.*).
This package is released under the terms of the MIT license.