Skip to content

Background for word

3 messages · Steven Yen, Boris Steipe, Rui Barradas

#
Dear,

I am having a lucky day. I am programming in RStudio and when I type 
"black" (quotation signs included, the word turn into a word with black 
ground. Couldn't get rid of the background----copying to Word, Excel, 
text editor and paste back to Rstudio, the word is still in black 
background? Help!

 ??? dv.group<-c("black","othrrace"); cat.ref<-"white"
#
It's a new editor feature: see the release notes:

https://dailies.rstudio.com/version/2022.12.0+353.pro20/
? Code editor can show previews of color in strings (R named colors e.g. ?tomato3? or of the forms ?#rgb?, ?#rrggbb?, ?#rrggbbaa?) when Options > Code > Display > [ ] enable preview of named and hexadecimal colors is checked.

You can turn it off in the global preferences if it bothers you.
Tools > Global Options ... > Code > Display ... there is the checkbox mentioned above

I like it, it's really useful to set up colour ramps. 


Cheers,
Boris
#
?s 06:15 de 12/01/2023, Steven T. Yen escreveu:
Hello,

I had the same problem and asked the RStudio Community about it. The 
answer solved the problem.


https://community.rstudio.com/t/after-updating-rstudio-color-names-are-highlighted/155600


Hope this helps,

Rui Barradas