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> On 2023-01-12, at 01:15, Steven T. Yen <styen at ntu.edu.tw> wrote: > > 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" > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
?s 06:15 de 12/01/2023, Steven T. Yen escreveu:> 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" > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.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