1

I use the package colorout to color my output in R (I don't use RStudio). When running tests in testthat it also prints out in color interfering with the colorout package printing a lot of color codes.

Here is an example of the output:

R> library(colorout)
R> devtools::test()
Loading mypackage
Testing mypackage
1;32m.0m1;32m.0m1;32m.0m

How can I turn off coloring in testthat?

4

1 回答 1

0

发现有一个选项:

options(testthat.use_colours = FALSE)
于 2015-10-22T12:59:46.313 回答