I am currently using R Studio's Cobalt
theme and have encountered an issue where the in-line output in Rmd files is not visible (white font on a white background). I need to change the font color to something that is visible.
Below is a reproducible example:
- Begin by setting the Editor Theme to
Cobalt
:
https://i.sstatic.net/ITYiz.png
Next, a simple example involving the use of str_view()
from Hadley's R4DS in an Rmd file:
x <- c("apple", "banana", "pear")
stringr::str_view(x, "an")
The output will be displayed as visible HTML without any issues, and the Viewer window also shows visible output:
https://i.sstatic.net/FWaan.png
However, when running it as an in-line chunk (which is how I often debug), some of the output appears as white text on a white background:
https://i.sstatic.net/sth50.png
Is there a way to modify the font color specifically for this output so that it is visible?
I have already attempted to edit Cobalt using the following link:
Following the guidance provided here: