console_width: Determine the width of the console

Description Usage Details Value Examples

View source: R/width.R

Description

It uses the cli.width option, if set. Otherwise it tries to determine the size of the terminal or console window.

Usage

1

Details

These are the exact rules:

Then we try to determine the size of the terminal or console window:

If we cannot determine the size of the terminal or console window, then we use the width option. If the width option is not set, then we return 80L.

Value

Integer scalar, the console with, in number of characters.

Examples

1

RonMobile/cli documentation built on Dec. 18, 2021, 11 a.m.