diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 7a3f7e904..65fdf3b2b 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -302,7 +302,7 @@ jobs: - name: Get changed files id: changed-files - uses: tj-actions/changed-files@v37 + uses: tj-actions/changed-files@v41 # NOTE: `since_last_remote_commit: true` is implied by default and falls back to the previous local commit. - name: List all changed files @@ -316,7 +316,7 @@ jobs: run: Rscript -e "rmarkdown::clean_site(preview = FALSE)" # Now we want to render all the html files from the Rmd files - - name: Run render html for the main site + - name: Run render html for the main website id: site run: Rscript -e "rmarkdown::render_site()" @@ -325,7 +325,7 @@ jobs: run: Rscript "scripts/render_module_details_for_syllabus.R" # Render all module files - - name: Render html of modules + - name: Render html of modules where .Rmd has changed run: | Rscript --vanilla "scripts/render_modules.R" --files "${{ steps.changed-files.outputs.all_changed_files }}" @@ -339,11 +339,10 @@ jobs: run: | Rscript --vanilla "scripts/render_resources.R" --files "${{ steps.changed-files.outputs.all_changed_files }}" - # Generate list of files that need pdfs - - name: Get list of html to pdfs + - name: Print list of lectures that need pdfs generated run: | Rscript --vanilla "scripts/render_html_list.R" - echo "$(cat files.txt)" + echo "$(cat lecture_files.csv)" - name: Read html and pdf files id: getfiles diff --git a/modules/Manipulating_Data_in_R/Manipulating_Data_in_R.Rmd b/modules/Manipulating_Data_in_R/Manipulating_Data_in_R.Rmd index ddaee4859..ff8f4be00 100644 --- a/modules/Manipulating_Data_in_R/Manipulating_Data_in_R.Rmd +++ b/modules/Manipulating_Data_in_R/Manipulating_Data_in_R.Rmd @@ -609,3 +609,9 @@ wide2 https://sebkrantz.github.io/collapse/ Might be helpful if your data is very large. However, `dplyr` and `tidyr` functions are great for most applications. + + + + + +