finds.dev

rdpeng/ProgrammingAssignment2

Repository for Programming Assignment 2 for R Programming on Coursera

View on GitHub

★ 890Rupdated Aug 2024

// the take

A Coursera homework stub for Roger Peng's R Programming course. Students fork it, implement two functions that cache a matrix inverse using R's `<<-` operator, then submit the URL for peer grading. The repo itself contains almost no code — just the assignment description and a blank R file.

The `<<-` scoping trick it teaches is genuinely non-obvious to R beginners and worth learning. The mean-caching walkthrough in the README is a clean, self-contained explanation of closures in R. Peer-grading at this scale (143k forks) has been running for years without the repo breaking, which is something.

There is essentially no code here — the repo is an assignment template, not a library or tool anyone would actually use. 143k forks are student submissions, not adoption. The pattern taught (manual getter/setter lists) is outdated now that R5/R6 reference classes and environments exist. Nothing in this repo is useful outside the course context.

We read the README, the directory tree and a key source file in July 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
890
Forks
143,466
Language
R
Last commit
14 Aug 2024

// nearby

If ProgrammingAssignment2 isn't quite it.

All repos →