r localization