bookendStr: Print long string in more managable fashion

View source: R/utils.R

bookendStrR Documentation

Print long string in more managable fashion

Description

Print first and last n characters of string in this format: "### ... ### (x total char)"

Usage

bookendStr(x, bookend = 8)

Arguments

x

long string

bookend

number of characters on either side to print

Value

reformatted string

Examples


start_string <- stringi::stri_rand_strings(n = 1, length = 250)
bookendStr(start_string, bookend = 6)


Nanostring-Biostats/SpatialOmicsOverlay documentation built on Dec. 18, 2024, 9:26 a.m.