Excellence requires focus, dedication, thinking things through from first principles, having the right people in place, etc.
The closest I can offer to a recipe is to hire a CEO / President / co-founder early on who has a track record of having R&D successes in former positions, who has a great depth of knowledge, who thinks deeply, and have them focus the organization on R&D, and to do this before the culture is set.
Of course, that's not always a winning strategy. If you do that, that same person is unlikely to have that same depth in, for example, customer engagement, negotiations, or legal.
Most hard things don't have recipes ("What's the recipe for an effective fighter jet?"). If they did have simple recipes, they usually wouldn't be hard. But that doesn't make them impossible (we have a whole fleet of effective fighter jets).