Install standard ci.yaml for r2u use #175
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As discussed over at the r2u repo yesterday this PR adds my standard
ci.yaml
. I added an extra paragraph with 'install_all' to explicitly install suggested dependencies as well as actual dependencies (I usually stick with just depends in most cases, one larger package at work also installs all suggests for maximum test coverage). Additional blocks or commands can be added, if needed, as usual via shell or Rscript snippet.In my action, the deploy step failed but that was expected as I do not have your tokens. I think you can tune in the opening paragraph when these actions are triggered to exclude forks and/or skip the corresponding steps if the variables are empty.
As you see, I also skip tests on macOS "because life is too short". For most things this should just work: the underlying script happily installs R for macOS and packages resolve well (and fast) too as binaries "in most cases". But because I don't work on a mac myself I never quite au courant about what is happening and prefer to just skip these tests rather than chase occassional one-offs. Your mileage may differ, it is easy to turn this on. Similarly, I usually run Windows off a different yaml script when I have to.
As you can, this did what it set out to do, and quickly, and that usually works for me.