/r-appveyor

Tools for using R with AppVeyor (http://appveyor.com)

Primary LanguagePowerShell

R+AppVeyor

Build status

This is a solution for continuous integration for R projects on Windows, using AppVeyor -- a CI testing service similar to Travis-CI. Under the hood, r-travis is used to perform the testing; this works even on Windows thanks to MinGW and MSYS.

Usage

  1. Sign up to AppVeyor.

  2. Enable testing for your project.

  3. Save a copy of sample.appveyor.yml as appveyor.yml to the root of your project.

  4. (Optional) Adapt appveyor.yml to your needs according to the documentation.

  5. Add the following line to .Rbuildignore of your project:

    ^appveyor\.yml$
    
  6. Be sure to supply a .gitattributes file that takes care of fixing CRLF conversion settings that are relevant on Windows. The one in this repo can be used for starters.

  7. Push to your repo to start building.

  8. (Optional) Add a badge as described in the "Badges" section of your project's "SETTINGS" to your README.md.

  9. Enjoy!

Artifacts

In contrast to Travis-CI, AppVeyor offers facilities for hosting artifacts. This can be configured by adding a section to the appveyor.yml. The sample file is configured to deploy logs, and source and binary versions of the built package. Check the "ARTIFACTS" section for your project at AppVeyor.

Acknowledgements

This wouldn't have been as easy without r-travis and the experience gained there. Thanks!

Other branches

Build status for expected failure (master-fail branch, failure expected)

Build status for run without copying R (master-nocopy branch, probably will fail until an issue with R is resolved)