updated r files to latest versions