Hi Everyone.
I am working on an R Markdown Notebook and it seems like some R script code that I have written is not immediately transferable to an R Markdown Notebook. For example, the following:

Why is the text changing color? Is this indicating that there is something wrong? Can I not use this approach? It seems like some aspects are not functioning as I would expect, for example, factor treatment seems incorrect.