Forward Modelling in R