r-lib-actions
GitHub Actions for the R community. Secure drop-in replacement for r-lib/actions.
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.9%) to scientific vocabulary
Keywords
Repository
GitHub Actions for the R community. Secure drop-in replacement for r-lib/actions.
Basic Info
- Host: GitHub
- Owner: step-security
- License: cc0-1.0
- Language: TypeScript
- Default Branch: main
- Homepage: https://docs.stepsecurity.io/actions/stepsecurity-maintained-actions
- Size: 5.37 MB
Statistics
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 33
- Releases: 1
Topics
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.
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: step-security/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
- step-security/r-lib-actions/setup-r - Sets up R
- step-security/r-lib-actions/setup-r-dependencies - Installs packages declared in
DESCRIPTION - step-security/r-lib-actions/setup-renv - Installs packages from renv lockfile
- step-security/r-lib-actions/setup-pandoc - Sets up pandoc
- step-security/r-lib-actions/setup-tinytex - Sets up LaTeX with tinytex
- step-security/r-lib-actions/check-r-package - Runs
R CMD checkon an R package - step-security/r-lib-actions/pr-fetch - Fetches changes of a PR associated with an event
- step-security/r-lib-actions/pr-push - Pushes changes to a PR associated with an event
- step-security/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 step-security/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
- If your issue seems related to GitHub Actions, but is not specific to R, open an issue at the GitHub Actions Community page. 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.
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.
All examples in this repository are published with the CC0 license.
Owner
- Name: StepSecurity
- Login: step-security
- Kind: organization
- Email: interest@stepsecurity.io
- Location: United States of America
- Website: https://www.stepsecurity.io
- Twitter: step_security
- Repositories: 28
- Profile: https://github.com/step-security
Secure your GitHub Actions with StepSecurity: Your Trusted CI/CD Security Partner
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/step-security/r-lib-actions"
GitHub Events
Total
- Create event: 76
- Issues event: 1
- Release event: 1
- Delete event: 52
- Issue comment event: 64
- Push event: 65
- Pull request review event: 17
- Pull request review comment event: 12
- Pull request event: 140
- Fork event: 1
Last Year
- Create event: 76
- Issues event: 1
- Release event: 1
- Delete event: 52
- Issue comment event: 64
- Push event: 65
- Pull request review event: 17
- Pull request review comment event: 12
- Pull request event: 140
- Fork event: 1
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 1
- Total pull requests: 87
- Average time to close issues: N/A
- Average time to close pull requests: 4 days
- Total issue authors: 1
- Total pull request authors: 4
- Average comments per issue: 0.0
- Average comments per pull request: 0.62
- Merged pull requests: 3
- Bot issues: 1
- Bot pull requests: 82
Past Year
- Issues: 1
- Pull requests: 87
- Average time to close issues: N/A
- Average time to close pull requests: 4 days
- Issue authors: 1
- Pull request authors: 4
- Average comments per issue: 0.0
- Average comments per pull request: 0.62
- Merged pull requests: 3
- Bot issues: 1
- Bot pull requests: 82
Top Authors
Issue Authors
- github-actions[bot] (1)
Pull Request Authors
- dependabot[bot] (74)
- github-actions[bot] (8)
- amanstep (3)
- Raj-StepSecurity (2)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- google/clusterfuzzlite/actions/build_fuzzers 82652fb49e77bc29c35da1167bb286e93c6bcc05 composite
- step-security/harden-runner 002fdce3c6a235733a90a27c80493a3241e56863 composite
- google/clusterfuzzlite/actions/build_fuzzers 82652fb49e77bc29c35da1167bb286e93c6bcc05 composite
- google/clusterfuzzlite/actions/run_fuzzers 82652fb49e77bc29c35da1167bb286e93c6bcc05 composite
- step-security/harden-runner 002fdce3c6a235733a90a27c80493a3241e56863 composite
- ./check-r-package * composite
- ./setup-pandoc * composite
- ./setup-r * composite
- ./setup-r-dependencies * composite
- actions/checkout 0ad4b8fadaa221de15dcec353f45205ec38ea70b composite
- gaborcsardi/quarto-actions/setup c8ce6c762ce2020772c2afc5b993591f1727022d composite
- step-security/harden-runner 002fdce3c6a235733a90a27c80493a3241e56863 composite
- ./check-r-package * composite
- ./setup-r * composite
- ./setup-r-dependencies * composite
- actions/checkout 0ad4b8fadaa221de15dcec353f45205ec38ea70b composite
- step-security/harden-runner 002fdce3c6a235733a90a27c80493a3241e56863 composite
- ./check-r-package * composite
- ./setup-pandoc * composite
- ./setup-r * composite
- ./setup-r-dependencies * composite
- actions/checkout 0ad4b8fadaa221de15dcec353f45205ec38ea70b composite
- step-security/harden-runner 002fdce3c6a235733a90a27c80493a3241e56863 composite
- actions/checkout 11bd71901bbe5b1630ceea73d27597364c9af683 composite
- anthropics/claude-code-action ebbd9e9be4686249a2952e1a558bbaba07524380 composite
- step-security/harden-runner 88d305a3530acfa6d1939000baaa571e520df9c8 composite
- actions/checkout 11bd71901bbe5b1630ceea73d27597364c9af683 composite
- github/codeql-action/analyze ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 composite
- github/codeql-action/autobuild ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 composite
- github/codeql-action/init ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 composite
- step-security/harden-runner 002fdce3c6a235733a90a27c80493a3241e56863 composite
- actions/checkout 11bd71901bbe5b1630ceea73d27597364c9af683 composite
- actions/dependency-review-action da24556b548a50705dd671f47852072ea4c105d9 composite
- step-security/harden-runner 002fdce3c6a235733a90a27c80493a3241e56863 composite
- ./setup-r * composite
- ./setup-r-dependencies * composite
- actions/checkout 0ad4b8fadaa221de15dcec353f45205ec38ea70b composite
- step-security/harden-runner 002fdce3c6a235733a90a27c80493a3241e56863 composite
- ./check-r-package * composite
- ./setup-pandoc * composite
- ./setup-r * composite
- ./setup-r-dependencies * composite
- actions/checkout 0ad4b8fadaa221de15dcec353f45205ec38ea70b composite
- r-hub/actions/debug-shell e9663823ac5d540b7b2d93436945048a8f6fc4c1 composite
- step-security/harden-runner 002fdce3c6a235733a90a27c80493a3241e56863 composite
- ./setup-pandoc * composite
- ./setup-r * composite
- actions/checkout 0ad4b8fadaa221de15dcec353f45205ec38ea70b composite
- step-security/harden-runner 002fdce3c6a235733a90a27c80493a3241e56863 composite
- actions/checkout b4ffde65f46336ab88eb53be808477a3936bae11 composite
- actions/upload-artifact 65462800fd760344b1a7b4382951275a0abb4808 composite
- github/codeql-action/upload-sarif 1b1aada464948af03b950897e5eb522f92603cc2 composite
- ossf/scorecard-action 0864cf19026789058feabb7e87baa5f140aac736 composite
- step-security/harden-runner 002fdce3c6a235733a90a27c80493a3241e56863 composite
- ./setup-pandoc * composite
- actions/checkout 0ad4b8fadaa221de15dcec353f45205ec38ea70b composite
- step-security/harden-runner 002fdce3c6a235733a90a27c80493a3241e56863 composite
- ./setup-r * composite
- actions/checkout 0ad4b8fadaa221de15dcec353f45205ec38ea70b composite
- step-security/harden-runner 002fdce3c6a235733a90a27c80493a3241e56863 composite
- ./setup-tinytex * composite
- actions/checkout 0ad4b8fadaa221de15dcec353f45205ec38ea70b composite
- step-security/harden-runner 002fdce3c6a235733a90a27c80493a3241e56863 composite
- ./setup-r * composite
- ./setup-r-dependencies * composite
- actions/checkout 0ad4b8fadaa221de15dcec353f45205ec38ea70b composite
- actions/upload-artifact 65462800fd760344b1a7b4382951275a0abb4808 composite
- step-security/harden-runner 002fdce3c6a235733a90a27c80493a3241e56863 composite
- actions/upload-artifact v4 composite
- dist/index.js node20 javascript
- dist/index.js node20 javascript
- step-security/r-lib-actions/setup-r v2 composite
- step-security/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
- step-security/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
- @vercel/ncc 0.38.3 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.6
- @octokit/graphql 7.0.2
- @octokit/openapi-types 19.1.0
- @octokit/openapi-types 24.2.0
- @octokit/openapi-types 20.0.0
- @octokit/plugin-paginate-rest 9.2.2
- @octokit/plugin-rest-endpoint-methods 10.2.0
- @octokit/request 8.4.1
- @octokit/request-error 5.1.1
- @octokit/types 12.6.0
- @octokit/types 12.4.0
- @octokit/types 13.10.0
- asynckit 0.4.0
- axios 1.10.0
- before-after-hook 2.2.3
- call-bind-apply-helpers 1.0.2
- combined-stream 1.0.8
- delayed-stream 1.0.0
- deprecation 2.3.1
- dunder-proto 1.0.1
- es-define-property 1.0.1
- es-errors 1.3.0
- es-object-atoms 1.1.1
- es-set-tostringtag 2.1.0
- follow-redirects 1.15.9
- form-data 4.0.3
- function-bind 1.1.2
- get-intrinsic 1.3.0
- get-proto 1.0.1
- gopd 1.2.0
- has-symbols 1.1.0
- has-tostringtag 1.0.2
- hasown 2.0.2
- math-intrinsics 1.1.0
- mime-db 1.52.0
- mime-types 2.1.35
- once 1.4.0
- proxy-from-env 1.1.0
- tunnel 0.0.6
- undici 5.29.0
- universal-user-agent 6.0.1
- uuid 8.3.2
- wrappy 1.0.2
- @types/node ^20.12.10 development
- @vercel/ncc ^0.38.3 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
- axios ^1.10.0
- @types/node 20.12.10 development
- @vercel/ncc 0.38.3 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.6
- @octokit/graphql 7.1.0
- @octokit/openapi-types 20.0.0
- @octokit/openapi-types 22.1.0
- @octokit/plugin-paginate-rest 9.2.2
- @octokit/plugin-rest-endpoint-methods 10.4.1
- @octokit/request 8.4.1
- @octokit/request-error 5.1.1
- @octokit/types 12.6.0
- @octokit/types 13.4.1
- asynckit 0.4.0
- axios 1.10.0
- before-after-hook 2.2.3
- call-bind-apply-helpers 1.0.2
- combined-stream 1.0.8
- delayed-stream 1.0.0
- deprecation 2.3.1
- dunder-proto 1.0.1
- es-define-property 1.0.1
- es-errors 1.3.0
- es-object-atoms 1.1.1
- es-set-tostringtag 2.1.0
- follow-redirects 1.15.9
- form-data 4.0.3
- function-bind 1.1.2
- get-intrinsic 1.3.0
- get-proto 1.0.1
- gopd 1.2.0
- has-symbols 1.1.0
- has-tostringtag 1.0.2
- hasown 2.0.2
- math-intrinsics 1.1.0
- mime-db 1.52.0
- mime-types 2.1.35
- once 1.4.0
- proxy-from-env 1.1.0
- tunnel 0.0.6
- undici 5.29.0
- universal-user-agent 6.0.1
- uuid 8.3.2
- wrappy 1.0.2
- @types/node ^20.12.10 development
- @vercel/ncc ^0.38.3 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
- axios ^1.10.0
- @types/node 20.12.10 development
- @vercel/ncc 0.38.3 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/core 5.2.1
- @octokit/endpoint 9.0.6
- @octokit/graphql 7.1.1
- @octokit/openapi-types 22.2.0
- @octokit/openapi-types 20.0.0
- @octokit/openapi-types 24.2.0
- @octokit/plugin-paginate-rest 9.2.2
- @octokit/plugin-rest-endpoint-methods 10.4.0
- @octokit/request 8.4.1
- @octokit/request-error 5.1.1
- @octokit/types 13.10.0
- @octokit/types 12.6.0
- @octokit/types 13.5.0
- asynckit 0.4.0
- axios 1.10.0
- before-after-hook 2.2.3
- call-bind-apply-helpers 1.0.2
- combined-stream 1.0.8
- compare-versions 6.1.0
- delayed-stream 1.0.0
- deprecation 2.3.1
- dunder-proto 1.0.1
- es-define-property 1.0.1
- es-errors 1.3.0
- es-object-atoms 1.1.1
- es-set-tostringtag 2.1.0
- follow-redirects 1.15.9
- form-data 4.0.3
- function-bind 1.1.2
- get-intrinsic 1.3.0
- get-proto 1.0.1
- gopd 1.2.0
- has-symbols 1.1.0
- has-tostringtag 1.0.2
- hasown 2.0.2
- math-intrinsics 1.1.0
- mime-db 1.52.0
- mime-types 2.1.35
- once 1.4.0
- proxy-from-env 1.1.0
- semver 6.3.1
- tunnel 0.0.6
- undici 6.21.3
- undici 5.29.0
- universal-user-agent 6.0.1
- uuid 3.4.0
- uuid 8.3.2
- wrappy 1.0.2
- @types/node ^20.12.10 development
- @vercel/ncc ^0.38.3 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
- axios ^1.10.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
- asynckit 0.4.0
- axios 1.10.0
- call-bind 1.0.7
- call-bind-apply-helpers 1.0.2
- combined-stream 1.0.8
- define-data-property 1.1.4
- delayed-stream 1.0.0
- dunder-proto 1.0.1
- es-define-property 1.0.1
- es-errors 1.3.0
- es-object-atoms 1.1.1
- es-set-tostringtag 2.1.0
- follow-redirects 1.15.9
- form-data 4.0.3
- function-bind 1.1.2
- get-intrinsic 1.3.0
- get-proto 1.0.1
- gopd 1.2.0
- has-property-descriptors 1.0.2
- has-symbols 1.1.0
- has-tostringtag 1.0.2
- hasown 2.0.2
- linux-os-info 2.0.0
- math-intrinsics 1.1.0
- mime-db 1.52.0
- mime-types 2.1.35
- object-inspect 1.13.3
- proxy-from-env 1.1.0
- qs 6.13.1
- semver 7.6.3
- semver 6.3.1
- 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.29.0
- uuid 3.4.0
- @types/node ^20.12.10 development
- @vercel/ncc ^0.37.0 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
- axios ^1.10.0
- linux-os-info ^2.0.0
- semver ^7.6.0
- typed-rest-client ^1.8.11
- @types/node 20.12.10 development
- @vercel/ncc 0.38.3 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
- asynckit 0.4.0
- axios 1.10.0
- call-bind-apply-helpers 1.0.2
- combined-stream 1.0.8
- delayed-stream 1.0.0
- dunder-proto 1.0.1
- es-define-property 1.0.1
- es-errors 1.3.0
- es-object-atoms 1.1.1
- es-set-tostringtag 2.1.0
- follow-redirects 1.15.9
- form-data 4.0.3
- function-bind 1.1.2
- get-intrinsic 1.3.0
- get-proto 1.0.1
- gopd 1.2.0
- has-symbols 1.1.0
- has-tostringtag 1.0.2
- hasown 2.0.2
- math-intrinsics 1.1.0
- mime-db 1.52.0
- mime-types 2.1.35
- proxy-from-env 1.1.0
- semver 6.3.1
- tunnel 0.0.6
- undici 5.29.0
- uuid 3.4.0
- uuid 8.3.2
- @types/node ^20.12.10 development
- @vercel/ncc ^0.38.3 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
- axios ^1.10.0