Transcript
Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.
Loading transcript...
I started this livestream with a detour into another project and forgot to share my screen for a bit before getting to the real topic. I took a food pantry R project I hadn't written, had Claude Code explain how it worked, saved that explanation as a README, and then refactored the project with the README kept up to date.
You'll learn:
- How to prompt AI to explain an unfamiliar R project and describe how its scripts and data files connect
- How to turn that explanation into a README so it outlasts the chat, including a Mermaid diagram of the pipeline
- How to use AI to refactor inherited code, such as merging scripts, renaming folders and moving summary steps into Quarto report parameters, while asking it to update the README each time
- A way to check AI's changes by looking at where helper functions are used before moving them, and by opening the re-rendered report to confirm the output
Tools mentioned:
Key moments:
- 00:32 Intro to R for the Rest of Us and the Ally program
- 01:50 Behind the scenes: using Amp to fix the Ally website
- 03:19 Setting up the scenario: inheriting a project from someone else
- 05:21 Asking Claude Code to explain how the project works
- 06:25 Reading the summary and pipeline diagram
- 08:53 Open questions the AI flagged for the colleague
- 10:01 Having Claude write everything into a README
- 12:43 Refactoring: merge import and clean, rename data folder
- 16:16 Switching the README diagram to Mermaid
- 17:14 Dropping the summarize script and using Quarto report parameters
- 22:24 Deleting the old directory and updating the README
- 24:02 Publishing the project to GitHub
- 26:05 Preview of next livestream on debugging R error messages