R&D is initially investor-funded, but the proceeds from new products are expected to be re-invested in further R&D, and this is a standard business model for Google, Microsoft, IBM, Apple, Samsung, LG, Panasonic, Sony, etc... not to mention all bio-tech and pharma.
So, thanks to the magic of capitalism, self-funded research is the norm, given an initial pilot investment to start the reaction.