What qualifies as R&D?

Any activity that seeks to make an advance in science or technology, including resolving technical uncertainties.