Skip to content

Commit

Permalink
Merge pull request #17 from phuse-org/docs/option-to-specify-extra-repos
Browse files Browse the repository at this point in the history
Add documentation example for extra repo spec
  • Loading branch information
epijim authored Feb 22, 2024
2 parents fbcc813 + 5715ab7 commit 7adc473
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion content/cicdworkflows-minimum/posts/r-cmd-check/r-cmd-check.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,26 @@ jobs:
## Advanced use
TODO: Add here how to also run against pharmaverse's r-universe latest & the latest release of PPM packages.
### Using other CRAN-like repositories
To use other CRAN-like repositories in your workflow, you can specify them using the `extra-repositories` option in the workflow file. This is particularly useful if your package depends on packages not available on CRAN or if you want to use the latest versions of packages from a specific repository.

In the example below, we add two additional repositories: `https://pharmaverse.r-universe.dev/` and `https://insightsengineering.r-universe.dev/`. These repositories are added in a whitespace-separated list to the `extra-repositories` option. This allows `R CMD Check` to access packages from these repositories as well as CRAN.


```yaml
name: Run R-CMD-check
# Specify the event types here
jobs:
check:
name: Check
uses: phuse-org/devops-toolkit/.github/workflows/R-CMD-check.yml@main
# Use the option to add extra repositories.
# One or more repositories can be added in a whitespace-separated list.
# In the example below, we add https://pharmaverse.r-universe.dev/ and
# https://insightsengineering.r-universe.dev/ as additional repositories.
with:
extra-repositories: "https://pharmaverse.r-universe.dev/ https://insightsengineering.r-universe.dev/"
```

0 comments on commit 7adc473

Please sign in to comment.