R_VERSION must be set in .travis.yml