diff --git a/.github/workflows/bookdown.yml b/.github/workflows/bookdown.yml index 00b7642..3871261 100644 --- a/.github/workflows/bookdown.yml +++ b/.github/workflows/bookdown.yml @@ -28,6 +28,8 @@ jobs: brew install pandoc - name: Install CRAN & Bioconductor packages + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | Rscript -e 'if (!requireNamespace("remotes", quietly = TRUE)) install.packages("remotes")' @@ -40,6 +42,9 @@ jobs: # Pin factoextra Rscript -e 'remotes::install_version("factoextra", version = "1.0.7", repos = "https://cran.rstudio.com")' + # Install ctxR from GitHub + Rscript -e 'remotes::install_github("USEPA/ctxR", auth_token = Sys.getenv("GITHUB_TOKEN"))' + # Now install remaining CRAN deps from DESCRIPTION Rscript -e 'remotes::install_deps(dependencies = TRUE, upgrade = "never")' diff --git a/.github/workflows/test_bookdown.yml b/.github/workflows/test_bookdown.yml index ff083fc..48faf40 100644 --- a/.github/workflows/test_bookdown.yml +++ b/.github/workflows/test_bookdown.yml @@ -31,6 +31,8 @@ jobs: brew install pandoc - name: Install CRAN & Bioconductor packages + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | Rscript -e 'if (!requireNamespace("remotes", quietly = TRUE)) install.packages("remotes")' @@ -43,6 +45,9 @@ jobs: # Pin factoextra Rscript -e 'remotes::install_version("factoextra", version = "1.0.7", repos = "https://cran.rstudio.com")' + # Install ctxR from GitHub + Rscript -e 'remotes::install_github("USEPA/ctxR", auth_token = Sys.getenv("GITHUB_TOKEN"))' + # Now install remaining CRAN deps from DESCRIPTION Rscript -e 'remotes::install_deps(dependencies = TRUE, upgrade = "never")'