Embedding 'exams' Exercises as Forms in 'rmarkdown' or 'quarto' Documents

Automatic generation of quizzes or individual questions as (interactive) forms within 'rmarkdown' or 'quarto' documents based on 'R/exams' exercises.



R/exams + rmarkdown + quarto logos

Embedding R/exams Exercises as Forms in R/Markdown or Quarto Documents

Overview

The R package exams2forms provides several building blocks for embedding exercises written with R/exams (https://www.R-exams.org/) in interactive documents or quizzes written with rmarkdown or quarto.

The idea is that the dynamic exercises in R/exams' Rmd (R/Markdown) or Rnw (R/LaTeX) format can also be reused in HTML documents, web pages, or online books. This facilitates their use for self-paced learning and self-assessment without the need for a learning management system etc. (By default the correct answers are obfuscated in the documents so that they are not obvious when inspecting the HTML source code.) And for (summative) assessments the same dynamic exercises could then be exported to different learning management systems or employed in written exams.

All R/exams exercise types are supported:

  • Single-choice (schoice).
  • Multiple-choice (mchoice).
  • Numeric (num).
  • Text (string).
  • Cloze combining all of the previous elements (cloze).

Many of the ideas as well as the code in the package have been adapted from the webexercises package, authored by Dale Barr and Lisa DeBruine.

Tutorial

An introductory tutorial is hosted on the R/exams website at: https://www.R-exams.org/tutorials/exams2forms/

Installation

The stable version of exams2forms is available from CRAN:

install.packages("exams2forms")

The latest development version can be installed from R-universe:

install.packages("exams2forms", repos = "https://zeileis.R-universe.dev")

License

The package is available under the General Public License version 3

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("exams2forms")

0.2-2 by Achim Zeileis, 3 months ago


https://www.R-exams.org/tutorials/exams2forms/


Report a bug at https://codeberg.org/zeileis/exams2forms/issues


Browse source code at https://github.com/cran/exams2forms


Authors: Achim Zeileis [aut, cre] (ORCID: , Reto Stauffer [aut] , Dale Barr [ctb] , Lisa DeBruine [ctb] , Florian Stampfer [ctb] , Jonas Tscholl [ctb]


Documentation:   PDF Manual  


GPL-3 license


Imports grDevices, tools, utils, base64enc, digest, knitr, rmarkdown

Depends on exams

Suggests xfun


See at CRAN