Like many others, I like writing my codes on several lines and I appreciate the auto-indent feature offered by RStudio. The issue suddenly started when the word undefined
showed up in the code editor whenever I pressed Enter
as I expected an automatic indentation. It is important to mention that this does not affect the proper running of the code.
my_fun <- function(xxx){
undefined
}
NB: Actually, when I copied and pasted the code here, undefined
was not copied to! I had to manually add it. Here is another example.
library(magrittr)
mtcars %>%
undefinedhead()