nix_first_newline: Remove the first instance of a newline from a string

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Remove the first instance of a newline from a string

Usage

1

Arguments

s

(character) A string

Value

A string with the first instance of a newline removed.

Examples

1
2
3
4
nix_first_newline("onetwo\nthree\nfour")

# Nothing to remove
nix_first_newline("fivesixseven")

multicolor documentation built on Nov. 4, 2021, 5:06 p.m.