Updated R-file to latest version