heading {cwhmisc}R Documentation

Write a line of text with underlining and blank lines

Description

heading writes m blank lines, then text, underline with length(text) copies of ch then write n blank lines comm can be used as comment character

Usage

  heading(text, comm = "", ch = "-", m = 1, n = 0)

Arguments

text (one line) text string, if "": only m+n empty lines
comm optional comment character written at start of text and of underline
ch character used to underline text, if "": no underline
m number of empty lines written before text
n number of empty lines written after underlined text

Value

NULL

Author(s)

Christian W. Hoffmann <c-w.hoffmann@sunrise.ch>
http://www.wsl.ch/personal_homepages/hoffmann/index_EN

Examples

#\#  "#|" means the left margin
heading("Very compact","","=",0,1)
#\#| 
heading("","=")  # one blank line only
#\#|
heading("standard")
#\#|
#\#|standard
#\#|--------
heading("Just a line, not really a heading","","",0,0)
#\#|Just a line, not really a heading

[Package cwhmisc version 2.0.1 Index]