finds.dev← search

// the find

rdpeng/ProgrammingAssignment2

★ 890 · R · updated Aug 2024

Repository for Programming Assignment 2 for R Programming on Coursera

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.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →