Skip to content

getThemeInfo()$dark can be NA #88

Description

@nicknimchuk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions