charVecToSingleLength {tinytest2JUnit}R 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)) # -> ""

[Package tinytest2JUnit version 1.1.2 Index]