Learn R Programming

crayon (version 1.5.3)

strip_style: Remove ANSI escape sequences from a string

Description

Remove ANSI escape sequences from a string

Usage

strip_style(string)

Value

The cleaned up string.

Arguments

string

The input string.

Examples

Run this code
strip_style(red("foobar")) == "foobar"

Run the code above in your browser using DataLab