crayon: Colored Terminal Output
Version 1.3.2

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.

AuthorGábor Csárdi [aut, cre], Brodie Gaslam [ctb]
Date of publication2016-06-28 20:16:37
MaintainerGábor Csárdi <csardi.gabor@gmail.com>
LicenseMIT + file LICENSE
Version1.3.2
URL https://github.com/gaborcsardi/crayon
Package repositoryView on CRAN
InstallationInstall the latest version of this package by entering the following in R:
install.packages("crayon")

Getting started

inst/README.markdown

Popular man pages

chr: Convert to character
col_nchar: Count number of characters in an ANSI colored string
has_color: Does the current R session support ANSI colors?
make_style: Create an ANSI color style
num_colors: Number of colors the terminal supports
style: Add style to a string
styles: ANSI escape sequences of crayon styles
See all...

All man pages Function index File listing

Man pages

chr: Convert to character
col_nchar: Count number of characters in an ANSI colored string
col_strsplit: Split an ANSI colored string
col_substr: Substring(s) of an ANSI colored string
col_substring: Substring(s) of an ANSI colored string
combine_styles: Combine two or more ANSI styles
concat: Concatenate character vectors
crayon: Colored terminal output
drop_style: Remove a style
has_color: Does the current R session support ANSI colors?
has_style: Check if a sting has some ANSI styling
make_style: Create an ANSI color style
num_colors: Number of colors the terminal supports
show_ansi_colors: Show the ANSI color table on the screen
start.crayon: Switch on or off a style
strip_style: Remove ANSI escape sequences from a string
style: Add style to a string
styles: ANSI escape sequences of crayon styles

Functions

$.crayon Man page
\%+\% Man page
ansi256 Source code
ansi256_rgb_index Source code
bgBlack Man page
bgBlue Man page
bgCyan Man page
bgGreen Man page
bgMagenta Man page
bgRed Man page
bgWhite Man page
bgYellow Man page
black Man page
blue Man page
blurred Man page
bold Man page
build_pkg Source code
capitalize Source code
check_string Source code
chr Man page Source code
col_nchar Man page Source code
col_strsplit Man page Source code
col_substr Man page Source code
col_substring Man page Source code
combine_styles Man page Source code
concat Man page
crayon Man page
crayon-package Man page
crayon_template Source code
cyan Man page
define_style Source code
drop_style Man page Source code
emacs_version Source code
finish Man page Source code
finish.crayon Man page Source code
green Man page
has_color Man page Source code
has_style Man page Source code
hidden Man page
i_num_colors Source code
inside_emacs Source code
install_tmp_pkg Source code
inverse Man page
is_builtin_style Source code
is_r_color Source code
is_rgb_matrix Source code
italic Man page
magenta Man page
make_chr_style Source code
make_crayon Source code
make_packages Source code
make_style Man page Source code
map_to_ansi Source code
multicol Source code
mypaste Source code
myseq Source code
non_matching Source code
num_colors Man page
onAttach Source code
onLoad Source code
print.crayon Source code
re_table Source code
red Man page
reset Man page
scale Source code
show_ansi_colors Man page Source code
silver Man page
start.crayon Man page Source code
strikethrough Man page
strip_style Man page Source code
style Man page Source code
style_8_from_rgb Source code
style_from_r_color Source code
style_from_rgb Source code
styles Man page Source code
underline Man page
use_or_make_style Source code
white Man page
with_libpath Source code
with_wd Source code
yellow Man page

Files

inst
inst/ANSI-8-OSX.png
inst/ANSI-256-OSX.png
inst/logo.png
inst/README.markdown
inst/NEWS.md
inst/logo.svg.gz
tests
tests/testthat.R
tests/testthat
tests/testthat/test-utils.R
tests/testthat/test-operations.R
tests/testthat/test-color.r
tests/testthat/test-vectors.r
tests/testthat/test-styles.r
tests/testthat/test-has-style.r
tests/testthat/test-style-var.r
tests/testthat/test-has-color.r
tests/testthat/test-make-style.r
NAMESPACE
R
R/style-var.r
R/has_ansi.r
R/ansi-256.r
R/combine.r
R/print.r
R/machinery.r
R/utils.r
R/styles.r
R/string.r
R/disposable.r
R/string_operations.r
R/parts.r
R/crayon-package.r
R/has_color.r
R/show.r
MD5
DESCRIPTION
man
man/crayon.Rd
man/concat.Rd
man/start.crayon.Rd
man/col_nchar.Rd
man/show_ansi_colors.Rd
man/has_style.Rd
man/col_substr.Rd
man/make_style.Rd
man/strip_style.Rd
man/col_substring.Rd
man/styles.Rd
man/combine_styles.Rd
man/drop_style.Rd
man/chr.Rd
man/col_strsplit.Rd
man/style.Rd
man/has_color.Rd
man/num_colors.Rd
LICENSE
crayon documentation built on May 19, 2017, 10:26 a.m.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.