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

getThemeInfo()$dark can be NA #88

Closed
nicknimchuk opened this Issue Nov 10, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@nicknimchuk

nicknimchuk commented Nov 10, 2017

I haven't been able to reproduce this myself, but per this post in the RStudio Community:
https://community.rstudio.com/t/library-tidyverse-results-in-error-on-r-studio/2642/13

A call to getThemeInfo() can return:

$editor
NULL

$global
[1] "Modern"

$dark
[1] NA

This results in an error in text_col:

Error: package or namespace load failed for ‘tidyverse’:
 .onAttach failed in attachNamespace() for 'tidyverse', details:
  call: if (theme$dark) crayon::white(x) else crayon::black(x)
  error: missing value where TRUE/FALSE needed

This is clearly a problem with the IDE or the API (and I've filed an issue with the API as a first step), but seems worth putting a band-aid on it for those that will update tidyverse more than the IDE.

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