Skip to content

Commit 2e2e69c

Browse files
Merge branch 'main' into madeline-may2025-edits
2 parents 407ace3 + b69632e commit 2e2e69c

File tree

4 files changed

+71
-6
lines changed

4 files changed

+71
-6
lines changed

.github/workflows/custom-pages.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Build-and-Deploy
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: r-lib/actions/setup-r@v2
16+
with:
17+
r-version: '4.4.2'
18+
19+
- uses: r-lib/actions/setup-pandoc@v2
20+
21+
- uses: quarto-dev/quarto-actions/setup@v2
22+
with:
23+
version: '1.6.43'
24+
25+
# ──────────────────────────────────────────────────────────────────────
26+
# Prepend /usr/bin so the .deb version of Quarto wins over any shims
27+
- name: Prioritize APT-installed Quarto
28+
run: echo "PATH=/usr/bin:${PATH}" >> $GITHUB_ENV
29+
30+
# Debug: confirm the right binary is being used
31+
- name: Check Quarto version
32+
run: |
33+
echo "Which quarto:"
34+
which -a quarto
35+
echo "Version:"
36+
quarto --version
37+
38+
- name: Install quarto-live extension
39+
run: quarto add --no-prompt r-wasm/quarto-live
40+
41+
# ──────────────────────────────────────────────────────────────────────
42+
- name: Cache renv packages
43+
uses: actions/cache@v4
44+
with:
45+
path: |
46+
~/.cache/R/renv
47+
renv/cache
48+
key: ${{ runner.os }}-renv-${{ hashFiles('renv.lock') }}
49+
restore-keys: ${{ runner.os }}-renv-
50+
51+
- name: Restore R packages
52+
run: Rscript -e 'renv::restore(prompt = FALSE)'
53+
54+
- name: Render site
55+
run: quarto render
56+
57+
- name: List rendered files
58+
run: ls -la docs
59+
60+
- name: Deploy
61+
uses: peaceiris/actions-gh-pages@v3
62+
with:
63+
github_token: ${{ secrets.GITHUB_TOKEN }}
64+
publish_dir: ./docs
65+
publish_branch: gh-pages

_quarto.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ project:
33
output-dir: docs
44

55
book:
6-
site-url: https://h2l2cR.com
6+
site-url: https://how-to-learn-to-code.github.io/Rclass-DataScience/
77
sidebar:
88
tools:
99
- icon: github
@@ -84,7 +84,6 @@ book:
8484
sidebar: false # <─ hides from the sidebar
8585
- file: class6_old.qmd
8686
sidebar: false
87-
8887

8988
execute:
9089
freeze: auto
@@ -94,10 +93,10 @@ execute:
9493
error: true
9594

9695
format:
97-
html:
96+
live-html:
9897
theme: cosmo
99-
number-sections: false
10098
toc: true
99+
number-sections: false
101100
toc-depth: 4
102101

103102
editor: visual

class0.qmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Below is some jargon that you may hear during class. Don't worry about memorizin
123123

124124
**global vs. local:** Global refers to something (usually a variable) that is accessible to the entire program/code. Local refers to something (usually a variable) that is accessible only relative to something else (such as within a specific code block, like a function).
125125

126-
```{r}
126+
```{webr}
127127
#| eval: false
128128
129129
# Global variable
@@ -183,3 +183,4 @@ A lot of you may want to use R on your personal computer (i.e., not on Longleaf)
183183
If you just want to click 2 buttons and figure it out: <https://posit.co/download/rstudio-desktop/>
184184

185185
If you want a more detailed install walk-through: <https://rstudio-education.github.io/hopr/starting.html>
186+

class1.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,4 +281,4 @@ Since this is a built-in dataset, we can get some help. Try running the code bel
281281
?mean()
282282
```
283283

284-
Adding a `?` before the name of a function or data frame (built-in or from a package) pulls up a help file in the Help tab of the Output pane. If you aren't sure what a function does, this should be your first step.
284+
Adding a `?` before the name of a function or data frame (built-in or from a package) pulls up a help file in the Help tab of the Output pane. If you aren't sure what a function does, this should be your first step.

0 commit comments

Comments
 (0)