This is propaganda. Spending on research and development at private pharmaceutical companies is dramatically eclipsed by marketing and sales spend.
https://www.google.com/amp/s/www.washingtonpost.com/amphtml/...
https://www.google.com/amp/s/www.washingtonpost.com/amphtml/...
So if pharma companies cut out all of their sales and marketing, they'd have even less revenue than they do today. And that would lower R&D spend.