We share our experience working with R to forecast election results. In particular we highlight the importance of following good practices of software development (version control, code review, containers,…), and how we used R with Stan to develop a Bayesian model.