From a7bf6884170de6c982c0e1323b689735c0c8b621 Mon Sep 17 00:00:00 2001 From: statnmap Date: Sat, 25 Sep 2021 23:41:27 +0200 Subject: [PATCH] put back deps and set github_pat --- .github/workflows/build_bookdown_pr.yml | 6 +++++- 01-big-shiny.Rmd | 3 +-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_bookdown_pr.yml b/.github/workflows/build_bookdown_pr.yml index 38463a76..4d9a6825 100644 --- a/.github/workflows/build_bookdown_pr.yml +++ b/.github/workflows/build_bookdown_pr.yml @@ -45,10 +45,14 @@ jobs: - name: Before build run: Rscript prep.R + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - name: Render Book run: Rscript -e 'bookdown::render_book("index.Rmd")' - + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/upload-artifact@v2 with: name: _site diff --git a/01-big-shiny.Rmd b/01-big-shiny.Rmd index 4cdd1019..74450984 100644 --- a/01-big-shiny.Rmd +++ b/01-big-shiny.Rmd @@ -346,8 +346,7 @@ While developing your application, the one you will be interested in is `cycloco Here is, for example, the cyclomatic complexity of the default golem template (assuming it is located in a `golex/` subdirectory): ```{r 01-big-shiny-13, include = FALSE} -# Assume dependencies already installed to avoid GitHub rate limit -remotes::install_local("golex", upgrade = "never", dependencies = FALSE) +remotes::install_local("golex", upgrade = "never") if (!dir.exists("golex")){ source("golembuild.R") }