Skip to contents

Format multiple line character vector to single line

Usage

single_line_string(x)

Arguments

x

<chr> character vector with line breaks (\n)

Value

<chr> single line character vector

Examples

single_line_string(
   "(Jan(?:uary)?|
    Feb(?:ruary)?|
    Mar(?:ch)?|"
 )
#> [1] "(Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|"