They achieve the same. I usually like to write my real applications, which have a lot of code and are complex, like two separate files, to separate the logic and make it more convenient. But when working with tiny applications for demo purposes or when submitting an application to SO or elsewhere, I find it more acceptable and easier to have one approach (app.R).
Personal preferences, really.
source
share