Home > Software design >  Coloured box over certain words in R Studio script file
Coloured box over certain words in R Studio script file

Time:01-01

Not sure why but in some of my R Scripts a coloured box is appearing over random words within ""

For example: The word blue is highlighted. Totally unclear why

If I just write the word blue then it appears normally. Only gets this box over it when in quotation marks.

In a different R script it is happening with the "peru"enter image description here

Dont believe I have changed any settings. Seems to persist even if I clear the global environment.

CodePudding user response:

blue and peru are both colors as you can verify in

plot(1:3, col = "peru", pch = 15, type = "b", lwd = 3)

So RStudio is just helping you by displaying the color refrerenced in the code

  • Related