Skip to content

Commit

Permalink
build: 👷 remove use of renv for building site (#180)
Browse files Browse the repository at this point in the history
## Description

While I like the idea of renv for many things, for building the website
and developing the material, it is a bit of a burden to debug and fix
issues. And for a course context, it isn't that important to have.
  • Loading branch information
lwjohnst86 authored Sep 22, 2024
1 parent bdf4d1a commit 23a8e85
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 4,210 deletions.
37 changes: 0 additions & 37 deletions .Rprofile

This file was deleted.

22 changes: 10 additions & 12 deletions .github/workflows/build-website.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: Build website

on:
push:
branches:
- main

name: build-deploy

branches:
- main
paths-ignore:
- '.vscode/**'
- '.github/**'

jobs:
build-deploy:
runs-on: ubuntu-latest
Expand All @@ -17,16 +20,11 @@ jobs:
with:
use-public-rspm: true

- name: Install system dependencies
run: sudo apt install libcurl4-openssl-dev libgmp3-dev libglpk40

- name: Install package dependencies
uses: r-lib/actions/setup-renv@v2
- name: Install dependencies
uses: r-lib/actions/setup-r-dependencies@v2

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
tinytex: false

- name: Publish to Netlify (and render)
uses: quarto-dev/quarto-actions/publish@v2
Expand Down
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ out in completing the exercises.

The teaching material is found mainly in the project folders:

- `preamble/`: Contains the syllabus and the schedule files.
- `sessions/`: Contains the code-along teaching material, as well as
- `preamble/`: Contains the syllabus and the schedule files.
- `sessions/`: Contains the code-along teaching material, as well as
associated links to the lecture slides.
- `slides/`: Contains the slides, created as Revealjs HTML slides by
- `slides/`: Contains the slides, created as Revealjs HTML slides by
using Quarto.
- `appendix/`: Contains the supplemental or secondary content.
- `appendix/`: Contains the supplemental or secondary content.

The website is generated from [Quarto](https://quarto.org), so follows
the file and folder structure conventions from that package.
Expand All @@ -52,10 +52,8 @@ Packages used and depended on for this course are included in the
root directory (where the `r-cubed-advanced.Rproj` file is located:

``` r
# install.packages("renv")
renv::install()
# Or:
renv::restore()
# install.packages("pak")
pak::pak()
```

You might need to connect to GitHub via a personal access token if you
Expand Down
Loading

0 comments on commit 23a8e85

Please sign in to comment.