"undefined" appears when writing code

If you're typing a word that's not the name of an object in your environment without quotation marks around it, R will tell you that it's not found, but usually the error message will be Error: object '<THE WORD YOU TYPED IN>' not found.

Could you be more specific about what exactly is happening when you say "appears"? Is it returned in the console, or is it some sort of hover box?

Does what you're doing work for you in R, but not in RStudio? (see FAQ below for disambiguation)

1 Like