When and How Software Development Becomes R&D