To take advantage of R&D though your staff need to be contractors or UK employees, so more difficult if you already have a workforce elsewhere.
If you have some horribly complex multinational structure then you'll have more scrutiny but it's not impossible.