Learn R Programming

plotcli (version 0.2.0)

remove_color_codes: Remove color codes from a string

Description

This function removes ANSI color codes from a given text string.

Usage

remove_color_codes(s)

Value

A text string with ANSI color codes removed.

Arguments

s

The text string containing ANSI color codes.

Examples

Run this code
colored_text <- make_colored("Hello, world!", "blue")
remove_color_codes(colored_text)

Run the code above in your browser using DataLab