MyNixOS website logo
Description

Interactive Quizzes as HTML Widgets.

Creates interactive JavaScript-based quizzes as 'HTML' widgets. Offers three quiz types: a single question with instant feedback (singleQuestion()), a multi-question quiz with navigation, timer, and results (multiQuestions()), and fill-in-the-blank cloze exercises (fillBlanks()). All quizzes auto-detect single-choice and multiple-choice modes from the input data, support customizable styling, keyboard navigation, and multilingual UI (English, German, French, Spanish). Designed for use in 'R Markdown', 'Quarto', and 'Shiny' applications. The singleQuestion() quiz design was inspired by Ozzie Kirkby <https://codepen.io/ozzie/pen/pvrVLm>. The multiQuestions() quiz design was inspired by Abhilash Narayan <https://codepen.io/abhilashn/pen/BRepQz>.

rquiz

Author: SaskiaOtto License:MIT

rquiz provides interactive quizzes as HTML widgets for R Markdown, Quarto, and Shiny applications. It offers three quiz types: a single question with instant feedback (singleQuestion), a multi-question quiz with navigation, timer, and results (multiQuestions), and fill-in-the-blank cloze exercises (fillBlanks). All quizzes support single-choice and multiple-choice modes, customizable styling, and multilingual UI.

I developed this package for my Data Science in Biology modules at the University of Hamburg, where I have been using and testing it with students since 2020 in HTML-based lecture slides (see e.g. fill-in-the-blank quiz and multi-page quiz in my Data Science 1 course).

Installation

You can install the development version from GitHub:

# install.packages("remotes")
remotes::install_github("saskiaotto/rquiz")

# or alternatively
# install.packages("pak")
pak::pkg_install("saskiaotto/rquiz")

Quiz Types

Overview of the three rquiz quiz types: single-page question with multiple-choice options (left), multi-page quiz with navigation and timer (center), and fill-in-the-blank cloze exercise (right)

Single-question quiz (left), multi-page quiz (center), and fill-the-blanks quiz (right).

Features

  • Three quiz types: Single question with instant feedback (singleQuestion), multi-question quiz with navigation, timer, and results (multiQuestions), fill-in-the-blank cloze (fillBlanks)
  • Immediate feedback: Visual feedback (color changes) on answers
  • Customizable design: Colors, fonts, sizes — all configurable; reusable themes via rquizTheme()
  • Multilingual: Built-in support for English, German, French, and Spanish currently
  • Accessible: ARIA labels, keyboard navigation, focus indicators
  • Shuffling: Randomize answer options or question order
  • No dependencies: Pure Vanilla JavaScript, no jQuery

Learn More

Credits

  1. The development of the singleQuestion quiz was inspired by Ozzie Kirkby and his JS/HTML/CSS code on codepen.io.
  2. The development of the multiQuestions quiz was inspired by Abhilash Narayan and his JS/HTML/CSS code on codepen.io.
Metadata

Version

1.0.0

License

Unknown

Platforms (80)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    uefi
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-uefi
  • aarch64-windows
  • aarch64_be-none
  • arc-linux
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-linux
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • sh4-linux
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-uefi
  • x86_64-windows