New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests failing if getOption("crayon.colors") != 16 #129

krlmlr opened this Issue Aug 13, 2018 · 0 comments


None yet
1 participant
Copy link

krlmlr commented Aug 13, 2018

In a 256-color terminal, running

R -q -e 'devtools::test()'

produces failures, but

R -q -e 'options(crayon.colors = 16); devtools::test()'

succeeds. The reason seems to be that style_grey_0.6 et al. are created during load time -- need to reset when calling crayon::num_colors(forget = TRUE) in the tests.

Thanks @brodieG for discovering this!

@krlmlr krlmlr closed this in 1021e26 Aug 14, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment