Quantitative Financial Programming with R