Install R 3.1 for Travis builds.