testthat
testthat copied to clipboard
Remove crayon and use cli only
In addition to less dependencies, many of the cli::ansi_*() functions work better than crayon::col_*() function, e.g. they support hyperlinks better.
With this, also look at https://github.com/r-lib/testthat/blob/bb25375016ece879cecabc81fdf1d5b3072ab835/R/reporter-progress.R#L524 and replace it with the appropriate cli::ansi_nchar() call.