Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (11.6%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: Wiqitanoli
- License: cc0-1.0
- Language: TypeScript
- Default Branch: main
- Size: 2.65 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
- Releases: 0
Metadata Files
README.md
GitHub Actions for the R language
This repository stores GitHub Actions for R projects, which can be used to do a variety of CI tasks. It also has a number of example workflows which use these actions.
Getting started
See this blog post on the Tidyverse blog.
Releases and tags
We use major version tags to mark breaking changes in these actions.
For the current version, please use the v2 tag, e.g.:
yaml
- uses: r-lib/actions/setup-r@v2
The v2 tag occasionally changes, to introduce non-breaking fixes and
improvements. These changes use more fine-grained tags, e.g. v2.0.1.
You can refer to these as well in your workflow files if you need to.
List of actions
- r-lib/actions/setup-r - Sets up R
- r-lib/actions/setup-r-dependencies - Installs packages declared in
DESCRIPTION - r-lib/actions/setup-renv - Installs packages from renv lockfile
- r-lib/actions/setup-pandoc - Sets up pandoc
- r-lib/actions/setup-tinytex - Sets up LaTeX with tinytex
- r-lib/actions/check-r-package - Runs
R CMD checkon an R package - r-lib/actions/pr-fetch - Fetches changes of a PR associated with an event
- r-lib/actions/pr-push - Pushes changes to a PR associated with an event
- r-lib/actions/setup-manifest - Sets up an R project with a Posit Connect
manifest.jsonfile
Other GitHub Actions for R projects
- quarto-dev/quarto-actions - Quarto related actions: install, render, publish
What's new?
See the v2 release notes.
These notes are kept current with the changes in v2.
Examples
See the r-lib/actions/examples directory for a variety of example workflows using these actions.
Where to find help
If your build fails, and you are unsure of why, here are some useful strategies for getting help.
- Figure out what caused the error. Look for the first time the word 'error' appears in the build log. Quite often errors at the end of the log are caused by an earlier issue, so it is best to look for the root cause.
- Take advantage of GitHub's code search to find similar yaml files. Use 'path:.github/workflows' to restrict your search to GitHub Action workflow files and also include additional terms specific to your problem. e.g. If you need to figure out how to install geospatial libraries such as gdal, use a search like 'gdal path:.github/workflows'. If you want to restrict results only to GitHub Actions workflows that use R you can add search for '"setup-r" path:.github/workflows
- Open an issue on
about your problem. Be sure to link to the workflow file you are using and a failing build to help others help you.
- If your issue seems related to GitHub Actions, but is not specific to R, open an issue at the GitHub Actions Community page.
- If you have done all of the above and are absolutely sure there is a bug in one of the R specific actions listed above, check if there is an open issue about it in this repo. Look at the pinned issues at the top first! We pin issues that affect many people, and the issue discussions often contain workarounds.
- Otherwise open a new issue in this repo.
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.
Contributions
Your contributions are welcome! For new features, or if you are unsure
about a bug fix, please open issue before submitting a pull request.
When submitting a pull request, please match the coding style of the
existing code. For any R code, please refer to the
Tidyverse style guide.
For TypeScript and JavaScript code, you can run npm run format
to standardize the code formatting.
Adding a major feature also needs testing, typically by running a
GHA workflow on the R package in this repository. Thank You!
Common questions
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 theconfigure.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=lfHow can I customize an action to run R code?\ \ The safest way is to add a
stepto your action, specifyingRscript {0}as theshellfor that step. Here's an example from the bookdown action: ```yaml- name: Build site run: bookdown::render_book("index.Rmd", quiet = TRUE) shell: Rscript {0} ```
Additional resources
- GitHub Actions for R, Jim Hester's talk at rstudio::conf 2020. Recording, slidedeck.
- GitHub Actions advent calendar a series of blogposts by Edward Thomson, one of the GitHub Actions product managers highlighting features of GitHub Actions.
- GitHub Actions with R - a short online book about using GitHub Actions with R, produced as part of the rOpenSci OzUnconf.
- Awesome Actions - a curated list of custom actions. Note that many of these are from early in the GitHub Actions beta and may no longer work.
License 
All examples in this repository are published with the CC0 license.
Owner
- Login: Wiqitanoli
- Kind: user
- Repositories: 1
- Profile: https://github.com/Wiqitanoli
Citation (CITATION.cff)
cff-version: 1.1.0
message: "If you use this software, please cite it using these metadata."
authors:
- family-names: Hester
given-names: Jim
orcid: "https://orcid.org/0000-0002-2739-7082"
title: "GitHub Actions for the R language"
version: 1.0.0
date-released: 2021-07-06
license: "CC0-1.0"
repository-code: "https://github.com/r-lib/actions"
GitHub Events
Total
- Issues event: 1
- Issue comment event: 1
- Create event: 3
Last Year
- Issues event: 1
- Issue comment event: 1
- Create event: 3
Dependencies
- google/clusterfuzzlite/actions/build_fuzzers 82652fb49e77bc29c35da1167bb286e93c6bcc05 composite
- google/clusterfuzzlite/actions/build_fuzzers 82652fb49e77bc29c35da1167bb286e93c6bcc05 composite
- google/clusterfuzzlite/actions/run_fuzzers 82652fb49e77bc29c35da1167bb286e93c6bcc05 composite
- ./check-r-package * composite
- ./setup-pandoc * composite
- ./setup-r * composite
- ./setup-r-dependencies * composite
- actions/checkout 0ad4b8fadaa221de15dcec353f45205ec38ea70b composite
- gaborcsardi/quarto-actions/setup fix/linux-arm64 composite
- ./check-r-package * composite
- ./setup-r * composite
- ./setup-r-dependencies * composite
- actions/checkout 0ad4b8fadaa221de15dcec353f45205ec38ea70b composite
- ./check-r-package * composite
- ./setup-pandoc * composite
- ./setup-r * composite
- ./setup-r-dependencies * composite
- actions/checkout 0ad4b8fadaa221de15dcec353f45205ec38ea70b composite
- ./setup-r * composite
- ./setup-r-dependencies * composite
- actions/checkout 0ad4b8fadaa221de15dcec353f45205ec38ea70b composite
- dessant/lock-threads 1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 composite
- ./setup-pandoc * composite
- ./setup-r * composite
- ./setup-r-dependencies * composite
- JamesIves/github-pages-deploy-action 65b5dfd4f5bcd3a7403bbc2959c144256167464e composite
- actions/checkout 0ad4b8fadaa221de15dcec353f45205ec38ea70b composite
- ./check-r-package * composite
- ./setup-pandoc * composite
- ./setup-r * composite
- ./setup-r-dependencies * composite
- actions/checkout 0ad4b8fadaa221de15dcec353f45205ec38ea70b composite
- r-hub/actions/debug-shell v1 composite
- ./setup-pandoc * composite
- ./setup-r * composite
- actions/checkout 0ad4b8fadaa221de15dcec353f45205ec38ea70b composite
- actions/checkout b4ffde65f46336ab88eb53be808477a3936bae11 composite
- actions/upload-artifact 65462800fd760344b1a7b4382951275a0abb4808 composite
- github/codeql-action/upload-sarif 1b1aada464948af03b950897e5eb522f92603cc2 composite
- ossf/scorecard-action 0864cf19026789058feabb7e87baa5f140aac736 composite
- ./setup-pandoc * composite
- actions/checkout 0ad4b8fadaa221de15dcec353f45205ec38ea70b composite
- ./setup-r * composite
- actions/checkout 0ad4b8fadaa221de15dcec353f45205ec38ea70b composite
- ./setup-tinytex * composite
- actions/checkout 0ad4b8fadaa221de15dcec353f45205ec38ea70b composite
- ./setup-r * composite
- ./setup-r-dependencies * composite
- actions/checkout 0ad4b8fadaa221de15dcec353f45205ec38ea70b composite
- actions/upload-artifact 65462800fd760344b1a7b4382951275a0abb4808 composite
- codecov/codecov-action f1b7348826d750ac29741abc9d1623d8da5dcd4f composite
- actions/upload-artifact v4 composite
- dist/index.js node20 javascript
- dist/index.js node20 javascript
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-renv v2 composite
- dist/index.js node20 javascript
- dist/index.js node20 javascript
- actions/cache v4 composite
- actions/cache/restore v4 composite
- actions/cache/save v4 composite
- quarto-dev/quarto-actions/setup 9e48da27e184aa238fcb49f5db75469626d43adb composite
- r-lib/actions/setup-pandoc v2 composite
- actions/cache v4 composite
- actions/cache/restore v4 composite
- actions/cache/save v4 composite
- dist/index.js node20 javascript
- curl * imports
- xml2 * imports
- covr * suggests
- knitr * suggests
- quarto * suggests
- rmarkdown * suggests
- testthat * suggests
- gcr.io/oss-fuzz-base/base-builder v1@sha256 build
- @types/node 20.12.10 development
- prettier 3.2.5 development
- typescript 5.4.5 development
- undici-types 5.26.5 development
- @actions/core 1.10.1
- @actions/exec 1.1.1
- @actions/github 6.0.0
- @actions/http-client 2.2.0
- @actions/io 1.1.3
- @fastify/busboy 2.1.0
- @octokit/auth-token 4.0.0
- @octokit/core 5.1.0
- @octokit/endpoint 9.0.4
- @octokit/graphql 7.0.2
- @octokit/openapi-types 19.1.0
- @octokit/plugin-paginate-rest 9.1.5
- @octokit/plugin-rest-endpoint-methods 10.2.0
- @octokit/request 8.1.6
- @octokit/request-error 5.0.1
- @octokit/types 12.4.0
- before-after-hook 2.2.3
- deprecation 2.3.1
- once 1.4.0
- tunnel 0.0.6
- undici 5.28.4
- universal-user-agent 6.0.1
- uuid 8.3.2
- wrappy 1.0.2
- @types/node ^20.12.10 development
- prettier ^3.2.5 development
- typescript ^5.4.5 development
- @actions/core ^1.10.1
- @actions/exec ^1.1.1
- @actions/github ^6.0.0
- @types/node 20.12.10 development
- prettier 3.2.5 development
- typescript 5.4.5 development
- undici-types 5.26.5 development
- @actions/core 1.10.1
- @actions/exec 1.1.1
- @actions/github 6.0.0
- @actions/http-client 2.2.1
- @actions/io 1.1.3
- @fastify/busboy 2.1.1
- @octokit/auth-token 4.0.0
- @octokit/core 5.2.0
- @octokit/endpoint 9.0.5
- @octokit/graphql 7.1.0
- @octokit/openapi-types 20.0.0
- @octokit/openapi-types 22.1.0
- @octokit/plugin-paginate-rest 9.2.1
- @octokit/plugin-rest-endpoint-methods 10.4.1
- @octokit/request 8.4.0
- @octokit/request-error 5.1.0
- @octokit/types 12.6.0
- @octokit/types 13.4.1
- before-after-hook 2.2.3
- deprecation 2.3.1
- once 1.4.0
- tunnel 0.0.6
- undici 5.28.4
- universal-user-agent 6.0.1
- uuid 8.3.2
- wrappy 1.0.2
- @types/node ^20.12.10 development
- prettier ^3.2.5 development
- typescript ^5.4.5 development
- @actions/core ^1.10.1
- @actions/exec ^1.1.1
- @actions/github ^6.0.0
- @types/node 20.12.10 development
- prettier 3.2.5 development
- typescript 5.4.5 development
- undici-types 5.26.5 development
- @actions/core 1.10.1
- @actions/exec 1.1.1
- @actions/http-client 2.2.1
- @actions/io 1.1.3
- @actions/tool-cache 2.0.1
- @fastify/busboy 2.1.0
- @octokit/action 6.1.0
- @octokit/auth-action 4.0.1
- @octokit/auth-token 4.0.0
- @octokit/auth-token 5.1.1
- @octokit/core 6.1.2
- @octokit/core 5.2.0
- @octokit/endpoint 10.1.1
- @octokit/endpoint 9.0.5
- @octokit/graphql 7.1.0
- @octokit/graphql 8.1.1
- @octokit/openapi-types 22.2.0
- @octokit/openapi-types 20.0.0
- @octokit/plugin-paginate-rest 9.2.1
- @octokit/plugin-paginate-rest 11.3.0
- @octokit/plugin-rest-endpoint-methods 10.4.0
- @octokit/request 8.4.0
- @octokit/request 9.1.1
- @octokit/request-error 5.1.0
- @octokit/request-error 6.1.1
- @octokit/types 13.5.0
- @octokit/types 12.6.0
- before-after-hook 2.2.3
- before-after-hook 3.0.2
- compare-versions 6.1.0
- deprecation 2.3.1
- once 1.4.0
- semver 6.3.1
- tunnel 0.0.6
- undici 6.19.5
- undici 5.28.4
- universal-user-agent 6.0.1
- universal-user-agent 7.0.2
- uuid 3.4.0
- uuid 8.3.2
- wrappy 1.0.2
- @types/node ^20.12.10 development
- prettier ^3.2.5 development
- typescript ^5.4.5 development
- @actions/core ^1.10.1
- @actions/exec ^1.1.1
- @actions/http-client ^2.2.1
- @actions/io ^1.1.3
- @actions/tool-cache ^2.0.1
- @octokit/action ^6.1.0
- @octokit/plugin-paginate-rest ^11.3.0
- compare-versions ^6.1.0
- @types/node 20.17.7 development
- @vercel/ncc 0.37.0 development
- prettier 3.3.3 development
- typescript 5.7.2 development
- undici-types 6.19.8 development
- @actions/core 1.11.1
- @actions/exec 1.1.1
- @actions/http-client 2.2.3
- @actions/io 1.1.3
- @actions/tool-cache 2.0.1
- @fastify/busboy 2.1.1
- call-bind 1.0.7
- define-data-property 1.1.4
- es-define-property 1.0.0
- es-errors 1.3.0
- function-bind 1.1.2
- get-intrinsic 1.2.4
- gopd 1.0.1
- has-property-descriptors 1.0.2
- has-proto 1.0.3
- has-symbols 1.0.3
- hasown 2.0.2
- linux-os-info 2.0.0
- object-inspect 1.13.3
- qs 6.13.1
- semver 6.3.1
- semver 7.6.3
- set-function-length 1.2.2
- side-channel 1.0.6
- tunnel 0.0.6
- typed-rest-client 1.8.11
- underscore 1.13.7
- undici 5.28.4
- uuid 3.4.0
- @types/node ^20.12.10 development
- @vercel/ncc ^0.37.x development
- prettier ^3.2.5 development
- typescript ^5.4.5 development
- @actions/core ^1.10.1
- @actions/exec ^1.1.1
- @actions/io ^1.1.3
- @actions/tool-cache ^2.0.1
- linux-os-info ^2.0.0
- semver ^7.6.0
- typed-rest-client ^1.8.11
- @types/node 20.12.10 development
- prettier 3.2.5 development
- typescript 5.4.5 development
- undici-types 5.26.5 development
- @actions/core 1.10.1
- @actions/exec 1.1.1
- @actions/http-client 2.2.0
- @actions/io 1.1.3
- @actions/tool-cache 2.0.1
- @fastify/busboy 2.1.0
- lru-cache 6.0.0
- semver 6.3.1
- semver 7.6.0
- tunnel 0.0.6
- undici 5.28.4
- uuid 3.4.0
- uuid 8.3.2
- yallist 4.0.0
- @types/node ^20.12.10 development
- prettier ^3.2.5 development
- typescript ^5.4.5 development
- @actions/core ^1.10.1
- @actions/exec ^1.1.1
- @actions/io ^1.1.3
- @actions/tool-cache ^2.0.1
- semver ^7.6.0