From 477a6f751cffdfbe14f7250d0ee85861259e99d9 Mon Sep 17 00:00:00 2001
From: Nick Art <100365428+NicK4rT@users.noreply.github.com>
Date: Sat, 23 Nov 2024 13:31:18 -0500
Subject: [PATCH] Update render-README.yml

---
 .github/workflows/render-README.yml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/render-README.yml b/.github/workflows/render-README.yml
index aab188d..88d94ac 100644
--- a/.github/workflows/render-README.yml
+++ b/.github/workflows/render-README.yml
@@ -3,7 +3,7 @@ name: Render README.qmd to Markdown
 on:
   push: # Trigger on every push to the repository
     branches:
-      - '**' # Tracks all branches; you can restrict this to main if needed
+      - '**' # Tracks all branches; restrict if needed
 
 jobs:
   render:
@@ -16,6 +16,12 @@ jobs:
     - name: Set up Quarto
       uses: quarto-dev/quarto-actions/setup@v2
 
+    - name: Install R and Required Packages
+      run: |
+        sudo apt-get update
+        sudo apt-get install -y r-base
+        Rscript -e 'install.packages(c("knitr", "rmarkdown"), repos = "https://cloud.r-project.org/")'
+
     - name: Find and Render README.qmd Files
       run: |
         # Find all README.qmd files and render them to Markdown