Learn R Programming

Copy Link

Version

Install

install.packages('crayon')

Monthly Downloads

835,186

Version

1.5.3

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

June 20th, 2024

Functions in crayon (1.5.3)

has_style

Check if a string has some ANSI styling
start.crayon

Switch on or off a style
styles

ANSI escape sequences of crayon styles
col_strsplit

Split an ANSI colored string
col_nchar

Count number of characters in an ANSI colored string
drop_style

Remove a style
chr

Convert to character
combine_styles

Combine two or more ANSI styles
concat

Concatenate character vectors
col_align

Align an ANSI colored string
crayon

Colored terminal output
col_substring

Substring(s) of an ANSI colored string
col_substr

Substring(s) of an ANSI colored string
show_ansi_colors

Show the ANSI color table on the screen
has_color

Does the current R session support ANSI colors?
hyperlink

Terminal Hyperlinks
make_style

Create an ANSI color style
num_colors

Number of colors the terminal supports
num_ansi_colors

Detect the number of ANSI colors to use
strip_style

Remove ANSI escape sequences from a string
style

Add style to a string