I think I have something that works, using a modified .travis.yml configuration.
The current devtools will build static versions of the vignettes using build_vignettes(install=TRUE), and install the resulting vignette output and vignette index in the doc and Meta directories, respectively, in the package root. Thus, I can add a pre_script stage to my travis build that makes an inst/doc directory and copies the files there.
I'd still be interested if anyone has a more elegant and simple answer, since this feels like an ugly hack.
See https://github.com/jonathan-g/datafsm, and specifically, https://github.com/jonathan-g/datafsm/blob/master/.travis.yml
language: r
sudo: false
cache: packages
matrix:
include:
- name: release
r: release
r_check_args: --as-cran --no-build-vignettes
- name: devel
r: devel
r_check_args: --as-cran --no-build-vignettes --use-valgrind
env:
- VALGRIND_OPTS='--leak-check=full --track-origins=yes'
addons:
apt:
packages:
- valgrind
r_build_args: --no-resave-data --no-build-vignettes
before_script:
- if ! test -d inst/doc; then mkdir inst/doc; fi
- cp -R doc/* inst/doc/
- cp -R Meta/* inst/doc/