BiocCaseStudies (version 1.34.0)

fixedWidthCat: Control the output of show methods

Description

fixedWidthCat makes sure that the output of a show method fits on the page by inserting lines breaks into long strings. numName converts an integer to it's literal name.

sepInt prints integers with a comma as separator between 1000s

Usage

fixedWidthCat(x, width=getOption("width"))

Arguments

x
An R object which is to be shown.
width
The number of characters after which lines are to be broken.

Value

A character vector of the output with long lines broken

Examples

Run this code
long <- paste(rep(letters[1:24], 5), sep="", collapse="")
fixedWidthCat(long)

Run the code above in your browser using DataLab