cw: Console wrap. Formats a string for printing to the console...

Description Usage Arguments Value Note

View source: R/cw.R

Description

Takes a potentially long character object and adds carriage returns and blank spaces for better appearance when printing to the terminal window

Usage

1
cw(x, final.cr = TRUE, indent = 0, exdent = 0)

Arguments

x

A character object

final.cr

Whether to add a carriage return at the end. T/F.

indent

First line indent (number of blank spaces)

exdent

Subsequent line(s) indent (number of blank spaces)

Value

character object with embedded \n characters

Note

This function can prevent long messages from extending beyond the width of the R-console. Works with any function that prints to the console (e.g., cat, print, stop)


UCANR-IGIS/uavimg documentation built on July 13, 2020, 9:35 p.m.