README.md

trainr

MIT License Version

The goal of trainr is to provide an interactive R learning experience, inspired by the Ruby Koans and the idea of using Test-Driven Development (and the Red -> Green -> Refactor) as a teaching tool.

Usage

trainr keeps track of completed exercises on a per-project level, so if you create a new project, that project starts at the beginning.

Development

Extending trainr is super simple. Just fork the GitHub repository and add your challenges to the inst/lessons folder, with the inst/lessons/chapter-<00>/lesson-<00>/<00>-exercise-name.R pattern. Anywhere in your script that you'd like a user to enter their own code, simply use the `?` token. Make sure to include tests for your code, and you're all done. Build your package, and whenever a user opens a trainr project folder with your package installed, the new exercises will be added to their list for completion.



ericwburden/trainr documentation built on Jan. 28, 2022, 2:21 p.m.