Skip to content

Improve courseware robustness - #1

Open
vjcitn wants to merge 9 commits into
datasciencelabs:mainfrom
vjcitn:main
Open

Improve courseware robustness#1
vjcitn wants to merge 9 commits into
datasciencelabs:mainfrom
vjcitn:main

Conversation

@vjcitn

@vjcitn vjcitn commented Jul 30, 2026

Copy link
Copy Markdown

Building from original source failed. Two important events: "summarise" needed to be altered to "reframe" in a number of uses, and "stevetheump" payroll data left the web.

I also wanted to reduce the scattering of direct URL references throughout the materials and adopted a _variables.yml discipline so that there is a central spot to manage external references. This could be used to simplify substitutions of other kinds like instructor/TF names.

Also added a Makefile and a target "precheck" that verifies that the system that builds the materials has the necessary packages.

vjcitn and others added 9 commits July 30, 2026 07:14
… internet archive

sufficient to get a first build; also factored out most hardcoded urls to _variables.yml
… build output

- Replace rafalab and site URLs with {{< var >}} shortcodes in all slide QMDs
- Update _quarto.yml site-url/repo-url/title from datasciencelabs to vjcitn
- Add **/*.quarto_ipynb to .gitignore
- Include re-rendered figure PNGs from clean quarto preview build

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Constrain sidebar-logo to max 120px and suppress the dark-content
duplicate that Bootstrap d-lg-inline was showing in light mode.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
docs/site_libs/ was in .gitignore, which meant the Bootstrap/Quarto
CSS grid layout never reached GitHub Pages — causing the sidebar to
render as an unstyled block at the top of every page.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
check_packages.R scans for all 49 packages used across course QMD files
(47 CRAN + 2 GitHub: excessmort, ThemePark) and reports missing ones
with exact install commands. Exits non-zero so make precheck fails
visibly when the environment is incomplete.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Packages guarded by eval:false (excessmort, gganimate, gsheet) are
noted as informational warnings but do not fail the check. Only the
45 packages that execute during quarto render cause a non-zero exit.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
check_packages.R now distinguishes CRAN vs GitHub sources and explains
the sustainability risk: GitHub-hosted packages (ThemePark, excessmort)
can disappear without notice. make check-cran pings CRAN to verify all
44 CRAN packages are still listed, useful at each course iteration.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 30, 2026 12:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants