Package: crayon 1.5.3.9000

Gábor Csárdi

crayon: Colored Terminal Output

The crayon package is now superseded. Please use the 'cli' package for new projects. 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.

Authors:Gábor Csárdi [aut, cre], Brodie Gaslam [ctb], Posit Software, PBC [cph, fnd]

crayon_1.5.3.9000.tar.gz
crayon_1.5.3.9000.zip(r-4.5)crayon_1.5.3.9000.zip(r-4.4)crayon_1.5.3.9000.zip(r-4.3)
crayon_1.5.3.9000.tgz(r-4.4-any)crayon_1.5.3.9000.tgz(r-4.3-any)
crayon_1.5.3.9000.tar.gz(r-4.5-noble)crayon_1.5.3.9000.tar.gz(r-4.4-noble)
crayon_1.5.3.9000.tgz(r-4.4-emscripten)crayon_1.5.3.9000.tgz(r-4.3-emscripten)
crayon.pdf |crayon.html
crayon/json (API)
NEWS

# Install 'crayon' in R:
install.packages('crayon', repos = c('https://r-lib.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/r-lib/crayon/issues

Pkgdown:https://r-lib.github.io

On CRAN:

16.62 score 325 stars 5.9k packages 1.5k scripts 1.0M downloads 2 mentions 46 exports 0 dependencies

Last updated 2 months agofrom:cfd7bfba89. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKDec 04 2024
R-4.5-winOKDec 04 2024
R-4.5-linuxOKDec 04 2024
R-4.4-winOKDec 04 2024
R-4.4-macOKDec 04 2024
R-4.3-winOKDec 04 2024
R-4.3-macOKDec 04 2024

Exports:%+%bgBlackbgBluebgCyanbgGreenbgMagentabgRedbgWhitebgYellowblackblueblurredboldchrcol_aligncol_ncharcol_strsplitcol_substrcol_substringcombine_stylescyandrop_stylefinishgreenhas_colorhas_hyperlinkhas_stylehiddenhyperlinkinverseitalicmagentamake_stylenum_ansi_colorsnum_colorsredresetshow_ansi_colorssilverstrikethroughstrip_stylestylestylesunderlinewhiteyellow

Dependencies:

Readme and manuals

Help Manual

Help pageTopics
Convert to characterchr
Align an ANSI colored stringcol_align
Count number of characters in an ANSI colored stringcol_nchar
Split an ANSI colored stringcol_strsplit
Substring(s) of an ANSI colored stringcol_substr
Substring(s) of an ANSI colored stringcol_substring
Combine two or more ANSI styles$.crayon combine_styles
Concatenate character vectors%+% concat
Colored terminal outputcrayon-package bgBlack bgBlue bgCyan bgGreen bgMagenta bgRed bgWhite bgYellow black blue blurred bold crayon cyan green hidden inverse italic magenta red reset silver strikethrough underline white yellow
Remove a styledrop_style
Does the current R session support ANSI colors?has_color
Check if a string has some ANSI stylinghas_style
Terminal Hyperlinkshas_hyperlink hyperlink
Create an ANSI color stylemake_style
Detect the number of ANSI colors to usedetect_tty_colors num_ansi_colors
Number of colors the terminal supportsnum_colors
Show the ANSI color table on the screenshow_ansi_colors
Switch on or off a stylefinish finish.crayon start.crayon
Remove ANSI escape sequences from a stringstrip_style
Add style to a stringstyle
ANSI escape sequences of crayon stylesstyles