r def