Only money spent that turns into an asset is investment. Iām not sure how it is in US, but in Germany, for example, not even registering a patent is an investment and does not imply the creation of an asset ā only buying the patent creates the asset.
In fact, it's arguable if anything in R&D qualifies as an expense at all.