add_linebreaks: Add line breaks to a linear predictor string

View source: R/helpfunctions_print-paste.R

add_linebreaksR Documentation

Add line breaks to a linear predictor string

Description

Adds line breaks to a string, breaking it after a "+" sign to not exceed a given width of characters and taking into account indentation.

Usage

add_linebreaks(string, indent, width = 90L)

Arguments

string

a character string (linear predictor)

indent

integer; number of characters the new line should be indented

width

integer; the maximum number of characters per line


JointAI documentation built on April 27, 2023, 5:15 p.m.