Learn R Programming

spsUtil (version 0.1.0)

remove_ANSI: Remove ANSI color code

Description

Remove ANSI pre-/suffix-fix in a character string.

Usage

remove_ANSI(string)

Arguments

string

string, length 1

Value

string with out ANSI characters

Examples

Run this code
# NOT RUN {
remove_ANSI("\033[34m\033[1ma\033[22m\033[39m")
# }

Run the code above in your browser using DataLab