R&D investment fends off competitors