I have successfully used travis-ci, but I am having problems using travis-ci with R 3.4.0 during the construction phase of the vignette with the following error in the "Building Package" section:
* installing the package to build vignettes
* creating vignettes ... ERROR
Error in loadVignetteBuilder(vigns$pkgdir) :
vignette builder 'knitr' not found
Calls: <Anonymous> -> loadVignetteBuilder
Execution halted
When I run R-CMD-check locally, it passes and I get no errors.
Here is the current .travis.yml
language: R
sudo: false
install:
- R -e "0" --args --bootstrap-packrat
cache:
directories:
- $TRAVIS_BUILD_DIR/packrat/src
- $TRAVIS_BUILD_DIR/packrat/lib
packages: true
r_packages:
- covr
after_success:
- Rscript -e 'library(covr); codecov()'
DESCRIPTION has a vignette line in it:
VignetteBuilder: knitr
knitr is also in my packrat.lock file, and packrat is used to build in .travis.yml.
I tried the following to no avail:
- added knitr to r_packages in .travis.yml
- added knitr for import into DESCRIPTION
- added
r_check_args: "--no-vignettes"to travis.yml hoping to skip the vignette build step. - added batch call to travis.yml from
installtobefore_install
, R-, travis-ci, , , knitr.
: https://github.com/cormac85/datakindr
: https://travis-ci.org/cormac85/datakindr