2025-08-09
How to accidentally write a textbook
Design Decisions
Teaching R and Python together
Conclusions
Textbook Link
Slides Link
Teaching Computing Tools for Statistics (Grad) in Fall
I have to teach R AND SAS?
Fall 2020 uncertainty ☣️🦠😷
Outside-class material: Videos or book(s)?
🤔 Writing a textbook > editing videos, right?
My 2020 world-on-fire coping mechanism
Assigned to develop new undergraduate computing courses in Spring 2022
New book w/ grad text in undergrad-sized chunks
Add Python 😬, Remove SAS 😌
Maintaining two textbooks is hard work!
Add chapters for additional undergrad computing courses
Update chapters: clarity, package updates, etc.
This summer:
Include all of the bad jokes 😜, comics 💬, and digressions 🐇 from lectures
GIFs can explain better than words (sometimes)
Show the same techniques in both languages
Center importance of reproducibility
(with SAS? 😅 SASMarkdown
)
Opinionated Tool Selection
Guess and Check
What will this code output?
myfun = function() x + 1
x = 14
myfun()
x = 20
myfun()
Without SAS, 👼👿
build the textbook via GitHub Actions?
LOTS of package deps in R and python 😱😵💫
Better reproducibility, more of a pain in the 🍑
Dependency caching is a lifesaver (most of the time)
Overall, a reasonable success!
Image generated by ChatGPT and modified
Assignments
2 Languages keep advanced students engaged
Others focus on mastering one language + concepts
Exams
Initial frustration 😧 - syntax is hard in one language!
Motivation: internships and experience 🧑💼 💼
Some appreciation for learning “why”, not “what” to do
Textbook helps anchor concepts (visual memory 👀🧠)
Like being able to comment via giscus 🗨️
Interactive Graphics beyond Shiny/Plotly
Databases 🦆 🏹
“Big” data strategies
Add polars
🐻❄️ content to supplement pandas
🐼
webR
and PyScript
integration
Audiobook format with quarto.audiobook (2024 GSoC Project)
Using JavaScript to create a TL;DR switch
Books