Skip to content

Releases: r-lib/crayon

crayon 1.5.3

23 Jun 12:03
Compare
Choose a tag to compare
  • The semantics of the cli.default_num_colors options is now different.
    It is now used as the default number of colors if the number of colors
    is not already set by the cli.num_colors option, the R_CLI_NUM_COLORS
    environment variable, the crayon.enabled and crayon.colors options,
    the NO_COLOR environment variable, the knitr.in.progress option,
    or a sink() call for the stream. This matches the behavior of the cli
    package.

crayon v1.5.2

01 Nov 09:30
Compare
Choose a tag to compare
  • crayon functions now mark their output with the right encoding,
    if their input was marked (#136, #138).

v1.5.1

28 Mar 15:45
Compare
Choose a tag to compare
  • crayon now does not fail to install from source if the utils package
    is not loaded (#133).

v1.5.0

14 Feb 18:14
Compare
Choose a tag to compare
  • You can use the new cli.default_num_colors option to set the default
    number of ANSI colors, only if ANSI support is otherwise detected.
    See the details in the manual of num_ansi_colors(). (From cli.)

  • crayon now install cleanly on R 3.4.x and R 3.5.x on Windows (#131).

v.1.4.2

30 Oct 10:06
Compare
Choose a tag to compare
  • Better ANSI support detection if there is an active sink().

  • Support ANSI markup in RStudio jobs.

v1.4.1

09 Feb 11:42
Compare
Choose a tag to compare
  • ANSI color support detection works correctly now in older RStudio (#112).

  • ANSI color support detection works correctly now on older R versions
    (#109).

v1.4.0

01 Feb 08:24
Compare
Choose a tag to compare
  • Overhauled and much improved detection of ANSI color support and
    number of ANSI colors.

  • NO_COLOR environment variable disables color (#64)

  • Now colors are turned on if ANSICON (https://github.com/adoxa/ansicon)
    is active.

  • New hyperlink() function to add hyperlinks to terminal output.
    The new has_hyperlink() function tests if the current stdout()
    supports this.

  • reset style now restores previous style for text following it (@brodieG,
    #35).

  • Warnings are no longer generated when the INSIDE_EMACS environment variable is
    set but does not include a version number.