mchoice: Multiple choice question

View source: R/moodle.R

mchoiceR Documentation

Multiple choice question

Description

Use this function in a cloze inline chunk to describe a single choice question.

Usage

mchoice(opts, sol)

Arguments

opts

The options to choose from (character vector)

sol

The correct solution (the correct value from opts, or the position of the correct value)

Details

Note: this is only supported for exams 2.4. CRAN version is at 2.3-6. Install the latest from R-Forge. install.packages("exams", repos = "http://R-Forge.R-project.org")


numbats/teachr documentation built on March 26, 2022, 10:34 p.m.