GitHub Actions for the R community
See the r-lib/actions/examples directory for a variety of example workflows using these actions.
If your build fails and you are unsure of why here are some useful strategies for getting help.
If using a general search engine or GitHub search about your problem/idea, please note that content published prior to the Fall 2019 is probably outdated because the beta version of GitHub Actions was different. More recent posts or answers could be outdated too since GitHub Actions evolve, so refer to GitHub Actions official docs in case of doubt (and to existing working workflows) and GitHub changelog.
Why are my builds with plots failing on macOS? You need to install XQuartz to do plotting with the default quartz device on macOS. This can be done by adding the following to your workflow.
yaml - if: runner.os == 'macOS' run: brew install --cask xquartz
Why are my Windows builds failing with an error about
configure.achaving CRLF line endings?\ On Windows, when your repo is checked out using git the line endings are automatically changed to CRLF. R's check process specifically checks if the
configure.acfile has these line endings, and will error if it does. To avoid this, add a
.gitattributesfile to the top level of your package with the following to configure git to always use LF line endings for this file: \
configure.ac text eol=lf
All examples in this repository are published with the CC0 license.