ansible-r-ci

Run the playbook using:

ansible-playbook -i localhost, r-ci.yml

System requirements

Use the sysreqs variable to specify a comma separated list of system requirements that must be present.
Example:

ansible-playbook -i localhost, --extra-vars "sysreqs=gdal-devel,geos-devel,proj-devel,sqlite-devel" r-ci.yml

Static code analysis of R code

Default is to run static code analysis of the R code using lintr. Set r_ci_lintr=false to disable this check.
Example:

ansible-playbook -i localhost, --extra-vars "r_ci_lintr=false" r-ci.yml

Code coverage

Use the r_ci_covr variable to run covr on a package and specify the target for the code coverage report.
Valid targets are:

Example, run code coverage and output the result to ‘covr.html’:

ansible-playbook -i localhost, --extra-vars "r_ci_covr=standalone" r-ci.yml