Financial Risk Modelling and Portfolio Optimisation with R