Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/insightsengineering/r-verdepcheck-action
Github Action to check if R package works correctly with minimum version of dependencies installed
https://github.com/insightsengineering/r-verdepcheck-action
actions github-actions r
Last synced: 9 days ago
JSON representation
Github Action to check if R package works correctly with minimum version of dependencies installed
- Host: GitHub
- URL: https://github.com/insightsengineering/r-verdepcheck-action
- Owner: insightsengineering
- License: apache-2.0
- Created: 2023-02-07T12:37:58.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-11T14:19:58.000Z (7 months ago)
- Last Synced: 2024-04-26T19:42:59.002Z (7 months ago)
- Topics: actions, github-actions, r
- Language: R
- Homepage: https://github.com/marketplace/actions/r-mindepscheck-action
- Size: 46.9 KB
- Stars: 1
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# R Version Dependency Check Action
## Description
Execute R CMD CHECK using various strategies of package dependencies versions.
The aim is to check correctness of a `DESCRIPTION` file, i.e. minimal version of dependencies.
This covers only _direct_ dependencies, i.e. it does not resolve dependencies of dependencies recursively.Example:
```mermaid
flowchart LR
A-- imports -->B;
B-- imports -->C;
```When executed for A, script would read A's `DESCRIPTION` file, determine version of B and install it using latest version of C (i.e. base package installation).
Please see [`verdepcheck`](https://github.com/insightsengineering/verdepcheck) package documentation for details.
## Action type
Composite## Author
Insights Engineering## Inputs
* `github-token`:_Description_: Token with permissions to clone repositories with dependencies.
_Required_: `false`
_Default_: `""`
* `repository-path`:
_Description_: Directory where the checked package has been cloned.
_Required_: `false`
_Default_: `repository`
* `extra-deps`:
_Description_: Extra dependencies specified similarly as in the `DESCRIPTION` file, i.e. `" ( )"` where both `` and `` are optional. Multiple entries are possible separated by `";"`.
_Required_: `false`
_Default_: `""`
* `check-args`:
_Description_: Optional value of `args` argument to `rcmdcheck::rcmdcheck` in form of a string with space as delimeter, e.g. `"--no-examples --no-tests"`.
_Required_: `false`
_Default_: `""`
* `build-args`:
_Description_: Optional value of `build_args` argument to `rcmdcheck::rcmdcheck` in form of a string with space as delimeter, e.g. `"--force --keep-empty-dirs"`.
_Required_: `false`
_Default_: `""`
* `strategy`:
_Description_: Strategy for dependency test, should be one of: min, release, max.
_Required_: `true`
* `additional-env-vars`:
_Description_: Additional environment variables.
_Required_: `false`
_Default_: `""`
## Outputs
None
## Usage
```yaml
name: Dependency Teston:
push:
branches:
- main
pull_request:
branches:
- mainjobs:
check:
runs-on: ubuntu-latest
name: Dependency Test
container:
image: rocker/tidyverse:4.4.1steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
path: repository- name: Run Dependency Test
uses: insightsengineering/r-verdepcheck-action@latest
with:
github-token: ${{ secrets.REPO_GITHUB_TOKEN }}
strategy: release- name: Upload lock file
if: always()
uses: actions/upload-artifact@v3
with:
name: lock-file
path: pkg.lock
```