I just published a book on financial risk forecasting with the R (and Matlab) code to implement all the procedures in the book available on http://www.financialriskforecasting.com/