problem in r