collapse: Collapse a vector into a human readable format for returning...

View source: R/utils.R

collapseR Documentation

Collapse a vector into a human readable format for returning in messages

Description

Limits the returned message based on a character maximum.

Usage

collapse(vector, collapse = ", ", limit = 150, end = "...")

Arguments

vector

The vector to collapse

collapse

Separator between each element after collapse

limit

Max character length for message

end

If length of message is over the limit this string will be appended to the end

Value

The collapsed vector as a string.


mrc-ide/hintr documentation built on April 21, 2024, 4:17 a.m.