Is there a way to get Travis CI to perform exactly the same checks as
R CMD check --as-cran
?
Currently my check passes --as-cran
locally with 0 errors and 0 warnings. But I see lots of warnings via Travis CI which don't occur during CRAN checks.
Here is a sample or the warnings Travis CI generates (that CRAN checks don't):
Package hyperref Warning: Option `hyperindex' has already been used,
(hyperref) setting the option has no effect on input line 377.
Package rerunfilecheck Warning: File `Rd2.out' has changed.
(rerunfilecheck) Rerun to get outlines right
(rerunfilecheck) or use package `bookmark'.
LaTeX Font Warning: Font shape `T1/zi4/m/it' undefined
(Font) using `T1/zi4/m/n' instead on input line 43.
One way around this is to configure Travis CI to stop treating warnings as errors, but I prefer it fail on warnings, but only on warnings CRAN would also elicit.