Learn R Programming

⚠️There's a newer version (1.5.3) of this package.Take me there.

crayon (version 1.3.1)

Colored Terminal Output

Description

Colored terminal output on terminals that support 'ANSI' color and highlight codes. It also works in 'Emacs' 'ESS'. 'ANSI' color support is automatically detected. Colors and highlighting can be combined and nested. New styles can also be created easily. This package was inspired by the 'chalk' 'JavaScript' project.

Copy Link

Version

Install

install.packages('crayon')

Monthly Downloads

1,379,528

Version

1.3.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Gabor Csardi

Last Published

July 13th, 2015

Functions in crayon (1.3.1)

drop_style

Remove a style
col_nchar

Count number of characters in an ANSI colored string
make_style

Create an ANSI color style
has_style

Check if a sting has some ANSI styling
num_colors

Number of colors the terminal supports
chr

Convert to character
col_substring

Substring(s) of an ANSI colored string
col_substr

Substring(s) of an ANSI colored string
crayon

Colored terminal output
col_strsplit

Split an ANSI colored string
strip_style

Remove ANSI escape sequences from a string
concat

Concatenate character vectors
start.crayon

Switch on or off a style
has_color

Does the current R session support ANSI colors?
combine_styles

Combine two or more ANSI styles
styles

ANSI escape sequences of crayon styles
show_ansi_colors

Show the ANSI color table on the screen
style

Add style to a string