I'm trying to setup a travis build but it fails with the error below:
$ export PKG_TARBALL=$(Rscript -e 'pkg <- devtools::as.package("."); cat(paste0(pkg$package, "_", pkg$version, ".tar.gz"));')
Error in loadNamespace(name) : there is no package called ‘devtools’
My package doesn't need devtools
to compile.
I've added devtools
to Suggests:
in the DESCRIPTION
, added it to .travis.yml
(see below) be no avail.
language: r
sudo: required
# System dependencies for HTTP calling
apt_packages:
- libcurl4-openssl-dev
- libxml2-dev
r_binary_packages:
- devtools
install:
- Rscript -e 'install.packages("INLA", repos="http://www.math.ntnu.no/inla/R/stable")'
What am I doing wrong?
Log file of the failing build: https://travis-ci.org/ThierryO/multimput/builds/97625211
Source of the package: https://github.com/ThierryO/multimput/tree/travis