{"id":18733502,"url":"https://github.com/insightsengineering/setup-r-dependencies","last_synced_at":"2026-04-29T22:02:54.343Z","repository":{"id":246356319,"uuid":"820814797","full_name":"insightsengineering/setup-r-dependencies","owner":"insightsengineering","description":"GitHub Action to install R package dependencies","archived":false,"fork":false,"pushed_at":"2024-11-13T17:56:58.000Z","size":63,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-04T09:31:41.451Z","etag":null,"topics":["actions","github-actions","r"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/setup-r-dependencies","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/insightsengineering.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"custom":["https://pharmaverse.org"]}},"created_at":"2024-06-27T08:26:41.000Z","updated_at":"2025-02-24T23:42:07.000Z","dependencies_parsed_at":"2025-05-19T23:48:22.400Z","dependency_job_id":null,"html_url":"https://github.com/insightsengineering/setup-r-dependencies","commit_stats":null,"previous_names":["insightsengineering/setup-r-dependencies"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/insightsengineering/setup-r-dependencies","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insightsengineering%2Fsetup-r-dependencies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insightsengineering%2Fsetup-r-dependencies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insightsengineering%2Fsetup-r-dependencies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insightsengineering%2Fsetup-r-dependencies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/insightsengineering","download_url":"https://codeload.github.com/insightsengineering/setup-r-dependencies/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/insightsengineering%2Fsetup-r-dependencies/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32445555,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T20:22:27.477Z","status":"ssl_error","status_checked_at":"2026-04-29T20:22:26.507Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","github-actions","r"],"created_at":"2024-11-07T15:10:00.306Z","updated_at":"2026-04-29T22:02:54.314Z","avatar_url":"https://github.com/insightsengineering.png","language":null,"funding_links":["https://pharmaverse.org"],"categories":[],"sub_categories":[],"readme":"# Setup R Dependencies Action\n\n## Description\n\nA wrapper on [`r-lib/actions/setup-r-dependencies`](https://github.com/r-lib/actions/tree/v2-branch/setup-r-dependencies) with additional features as below:\n\n- Use dependencies from identical feature branch (if exists). This allows to co-develop packages and test them together.\n- Use development version of dependencies if specified in the `DESCRIPTION` file. This allows to test packages with dependencies that are not yet released.\n\nThis logic requires additional input of package references to check against. Please see the `lookup-refs` parameter description for more details. Currently, only GitHub references are supported.\n\nThe implementation relies on the `pkgdepends` package and it is temporarily changing the `DESCRIPTION` file by adding new `Config/Needs/` fields. Then `r-lib/actions/setup-r-dependencies` is called with the `needs` parameter.\n\nFor private repositories, run the action with `GITHUB_PAT` environment variable set to GitHub token. This is handled by `pak` (via `gitcreds` - see the [documentation](https://gitcreds.r-lib.org/reference/gitcreds_get.html)).\n\n## Action type\nComposite\n\n## Author\nInsights Engineering\n\n## Inputs\n* `repository-path`:\n\n  _Description_: Directory where the R package is located relative to the calling GitHub workflow workspace.\n\n  _Required_: `false`\n\n  _Default_: `\".\"`\n\n* `lookup-refs`:\n\n    _Description_: List of [package references](https://r-lib.github.io/pkgdepends/reference/pkg_refs.html) to be used for the feature branch. Multiple entries in new lines or separated by commas. Only GitHub references are supported.\n\n    _Required_: `false`\n\n    _Default_: `\"\"`\n\n* `dependencies`:\n\n    _Description_: Passed to `r-lib/actions/setup-r-dependencies`.\n\n    _Required_: `false`\n\n    _Default_: `\"all\"`\n\n* `extra-packages`:\n\n    _Description_: Passed to `r-lib/actions/setup-r-dependencies`.\n\n    _Required_: `false`\n\n    _Default_: `\"\"`\n\n* `install-quarto`:\n\n    _Description_: Passed to `r-lib/actions/setup-r-dependencies`.\n\n    _Required_: `false`\n\n    _Default_: `auto`\n\n* `cache-version`:\n\n    _Description_: Passed to `r-lib/actions/setup-r-dependencies`.\n\n    _Required_: `false`\n\n    _Default_: `1`\n\n* `needs`:\n\n    _Description_: Passed to `r-lib/actions/setup-r-dependencies`. The value will be amended by `DepsBranch` and `DepsDev` values.\n\n    _Required_: `false`\n\n    _Default_: `\"\"`\n\n* `skip-desc-branch`:\n\n    _Description_: Skip branch lookup for dependencies specified in the `DESCRIPTION` file.\n\n    _Required_: `false`\n\n    _Default_: `false`\n\n* `skip-desc-dev`:\n\n    _Description_: Skip development version lookup for dependencies specified in the `DESCRIPTION` file.\n\n    _Required_: `false`\n\n    _Default_: `false`\n\n* `skip-install`:\n\n    _Description_: Skip installation of dependencies.\n\n    _Required_: `false`\n\n    _Default_: `false`\n\n* `max-iter`:\n\n    _Description_: Maximum number of iterations to resolve dependencies.\n\n    _Required_: `false`\n\n    _Default_: `10`\n\n* `repository-list`:\n\n    _Description_: Comma-separated list of pkgcache-compatible repository names from which the dependencies will be downloaded. Optionally, list elements can be named in the form of `name=repo_name`.\n\n    _Required_: `false`\n\n    _Default_: `\"PPM=PPM@latest\"`\n\n* `restore-description`:\n\n    _Description_: Whether the DESCRIPTION file (modified by this action) should be restored to its original contents?\n\n    _Required_: `false`\n\n    _Default_: `true`\n\n\n## Outputs\n\nNone\n\n## Usage\n\n```yaml\n    steps:\n      - name: Checkout repo\n        uses: actions/checkout@v4\n\n      - name: Setup R\n        uses: r-lib/actions/setup-r@v2\n\n      - name: Setup R dependencies\n        uses: insightsengineering/setup-r-dependencies@v1\n        with:\n          github-token: ${{ secrets.REPO_GITHUB_TOKEN }}\n          lookup-refs: |\n            test/package1\n            test/package2\n            test/package3\n\n      - name: Check R package\n        uses: r-lib/actions/check-r-package@v2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsightsengineering%2Fsetup-r-dependencies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finsightsengineering%2Fsetup-r-dependencies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finsightsengineering%2Fsetup-r-dependencies/lists"}