diff --git a/.github/workflows/roxygen.yml b/.github/workflows/roxygen.yml index 281b467..c539f66 100644 --- a/.github/workflows/roxygen.yml +++ b/.github/workflows/roxygen.yml @@ -32,6 +32,19 @@ jobs: with: path: ${{ github.event.repository.name }} + - name: Install package dependencies 📄 + run: | + if (file.exists("dependencies.yml")) { + repos <- yaml::yaml.load(readLines("dependencies.yml"))$dependencies |> + sapply(function(x) x$repo) + if(repos |> length() > 0) { + repos |> + pak::pak(dependencies = TRUE, ask = FALSE, upgrade = FALSE) + } + } + shell: Rscript {0} + working-directory: ${{ github.event.repository.name }} + - name: Generate man pages 📄 run: | Rscript -e 'roxygen2::roxygenize()'