text_to_char_vector: Convert Comma-Separated String to Character Vector

View source: R/replext_helpers.R

text_to_char_vectorR Documentation

Convert Comma-Separated String to Character Vector

Description

This internal function takes a string of comma-separated values and converts it into a character vector. It is used to process user inputs from the Shiny app's UI, particularly when these inputs need to be retained as character data.

Usage

text_to_char_vector(text_input)

Arguments

text_input

A string containing comma-separated values, typically user input from the Shiny app's UI. The function trims leading and trailing whitespace before processing.

Value

A character vector converted from the comma-separated string. If the input is an empty string or consists only of whitespace, returns an empty character vector.


npboottprm documentation built on Sept. 13, 2024, 5:06 p.m.