I am interested in examples of sources (R code, R packages, books, book chapters, articles, links etc) for learning statistical and mathematical concepts through R (it could also be through other languages, but R is my favorite flavor).
The challenge is that the learning of the material relies on the programming, not just on how to run a code that performs the algorithm.
So (for example) a book like Linear models with R (which is a great book) is not what I am looking for. This is since this books mainly shows how to implement linear models in R, but it does not revolve around teaching linear models by using R.
The help files for the (wonderful) TeachingDemos package is a good example of what I am looking for. It is an R package which includes functions for learning statistical concepts through various R applets and simulations. The accompany help files are nice. Of course, neither are sufficient, and require an external text-book in order to master many of the exact details to learn them (well, the help files do).
All leads will be much appreciated.