r internal and