Right, you can only deduct R&D expenses that happen inside the U.S.
If you want to do R&D overseas, best to set up an overseas company.