R: What's the logic about when to use quotation marks and when not to?

This is an example where quotes would be "correct", but it works with and without quotes. You will mainly see without because it's easier to type.