Update configuration script to use latest version of R