charVecToSingleLength: Convert any will character vector to a single length...

View source: R/utils.R

charVecToSingleLengthR Documentation

Convert any will character vector to a single length character vector

Description

Convert any will character vector to a single length character vector

Usage

charVecToSingleLength(x)

Arguments

x

a character

Value

x a single-length character vector Non-NA

Examples

tinytest2JUnit:::charVecToSingleLength(c("Hello", "World")) # -> "HelloWorld"
tinytest2JUnit:::charVecToSingleLength(c("Hello", NA_character_)) # -> "HelloNA"
tinytest2JUnit:::charVecToSingleLength(character(0L)) # -> ""

tinytest2JUnit documentation built on June 22, 2024, 9:18 a.m.