use bootstrap code from krlmlr/R-Travis