R on the sm