I write a lot of R code, for my own research and for classes I’ve taught.
Everything below is ‘use at your own risk’ – not that I think anything terrible will happen, but I can’t guarantee to actively support everything. That being said, if you use any of these scripts and come across bugs or interesting/unresolved problems, I’m typically happy to talk about them.
List of recommended resources on R: R Resources
Learn to program in R.
Maximum likelihood in R.