eddelbuettel.github.io/r-travis: Continuing With the Original Travis CI Script for R



This repository is a fork of the (deprecated) r-travis repository by Craig Citro et al. I was an early contributor to this project, and quite like its design and features -- so I am keeping it around.

Why Not the New Travis R Setup?

Given all our work around Rocker (the container for R blessed by Docker itself) where I am one-half of the project too, you'd expect me to be fully in support of container-based Travis. And you'd be right---I am. Containers rock.

But I am just not all that excited that we cannot bring our own containers, or use sudo, with Travis. I have been building Debian packages since 1995 and simply love, love, love the fact that the (initial) Travis setup allowed us to apt-get packages in as needed. And with couple dozen repositories I have around R, I needed that multiple times.

Plus I also like the fact that I am essentially in control of my own script here, as you could simply by forking this repo and sourcing from it.


As of right now, only a few repository of mine have switched. You can see the corresponding files for drat, digest, gaussfacts, littler, RcppStreams, rmsfact, and RQuantLib. I simply switched to sourcing from this repository's website, and also renamed to a shorter, simpler run.sh. I intend to switch more repositories to this over the coming weeks.

Among these examples, littler, and RQuantLib show the interesting use case of relying on the external Launchpad PPA repository. This way we can use pre-built .deb packages which would either take approximately forever to built such as QuantLib, or can equally well load from the set of approximately 3000 r-cran-* packages provided by Michael Rutter in his excellent c2d4u repository.

R 3.5 and R 3.4 are supported, with the default now being R 3.5.*. You can fall back to using R 3.4 by setting R_VERSION="3.4" as an environment variable in your .travis.yml. You can also use build matrix of two R versions as shown in this .travis.ymlfile.


This project started in August 2016 as a continuation of the initial `r-travis` project, and has been updated throughout 2017 and 2018.

Dirk Eddelbuettel