Title: Flexible Generation of E-Learning Exams in R: Moodle Quizzes, OLAT Assessments, and Beyond Authors: Achim Zeileis (1), Nikolaus Umlauf (1), Friedrich Leisch (2) Affiliation: (1) Universität Innsbruck, (2) Universität für Bodenkultur Wien Abstract: The capabilities of the package "exams" for automatic generation of (statistical) exams in R are extended by adding support for learning management systems: As in earlier versions of the package, exam generation is based on separate Sweave files for each exercise - but rather than just producing different types of PDF output files, the package can now render the same exercises into a wide variety of output formats. These include HTML (with various options for displaying mathematical content) and XML specifications for online exams in learning management systems such as Moodle or OLAT. This flexibility is accomplished by a new modular and extensible design of the package that allows for reading all weaved exercises into R and managing associated supplementary files (such as graphics or data files). The readily available user interfaces are introduced with special emphasis on OLAT. Furthermore, it is outlined how the underlying infrastructure is designed and how new functionality can be built on top of the existing tools. Contact details: Achim Zeileis, Department of Statistics, Faculty of Economics and Statistics, Universität Innsbruck, Universitätsstrasse 15, A-6020 Innsbruck, Austria. E-Mail: Achim.Zeileis@uibk.ac.at