Greetings and greetings
I recently hooked up a github repo containing an R package for Travis CI. I thought that the repository would be built perfectly, but there are several validation errors that I cannot replicate on local installations of Windows, OS X or Ubuntu 14.04 LTS.
Errors arise from functions that have common features:
- Contains reference documentation roxygen2, which is encoded by the @keyword internal key.
- Recorded using Rcpp / RcppArmadillo.
In particular, I receive the following warning from Travis CI:
Functions or methods using the 'internal function here' in the documentation object, but not in the code:
This is not particularly problematic since this is a warning. A previous post looked at another form of this example using @method and @export. However, the Rcpp functions are not OO (S3 / S4 / RR).
However, when Travis CI starts evaluating sample packages, this warning becomes an error:
Error: Could not find function "internal function here"
and leads to a build failure. Although the assembly itself must pass the test, since the function exists.
Travis CI is configured using the recommended recommendations as follows:
language: r
sudo: required
warnings_are_errors: true
r_packages:
- ggplot2
- devtools
- RcppArmadillo
- knitr
- gridExtra
- grid
r_build_args: "--no-build-vignettes"
r_check_args: "--no-build-vignettes --as-cran"
Note Added -no-build-vignettes, since Travis made a mistake when creating them, because the R code calls one of the internal functions listed in the documents.
, :
Travis CI (v1.0.1)
CRAN:
CRAN (v1.0.0)
.