prints a separator line from a given pattern

Description

Prints a separator line from a given pattern. The line can be composite with the width argument. The pattern can comprise more than one character. General indentation is possible (gind). Even lines can have a different pattern(pat2).

Usage

1
form3line(len=50, pat="-_-", wid=3, gind="", pat2="_-_", imp=TRUE)

Arguments

len

Line length (without the general indentation.

pat

Pattern to use.

wid

Number of elementary lines.

gind

String to introduce as indentation.

pat2

Pattern to use for the even lines. If NULL, the pattern is common to all lines.

imp

Printing when TRUE or returning (FALSE)

Details

contrary to form3repeat \n are introduced at the end.

Value

character string or printing according to imp

Examples

1

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.