Learn R Programming

kinship2 (version 1.6.4)

printBanner: Print a nice banner

Description

Print a nice banner with a border above and below the text. It centers the text, and adjusts to the width system option by breaking into multiple lines when needed.

Usage

printBanner(str, banner.width=options()$width, char.perline=.75*banner.width, border="=")

Arguments

str

character string - a title within the banner

banner.width

width of banner, the default is set to fit current options

char.perline

number of characters per line for the title, the default is 75% of the banner.width parameter

border

type of character for the border

Value

nothing is returned

Details

This function prints a nice banner in both R and S-PLUS

See Also

options

Examples

Run this code
# NOT RUN {
printBanner("This is a pretty banner", banner.width=40, char.perline=30)

# the output looks like this:
# ========================================
#         This is a pretty banner
# ========================================
# }

Run the code above in your browser using DataLab