latest version of the r script