create_question: Create an HTML file with the quiz question

Description Usage Arguments Value

View source: R/create_question.R

Description

Creates an HTML file with the question, answers, answer images, image holders for results and leaderboard and navigation to the previous and next question.

Usage

1
create_question(n, quiz = getOption("peRson.quiz"))

Arguments

n

Sequence number of the quiz question.

quiz

Quiz environment with quiz variables (uses questions, question_colors, named_colors, css_file).

Value

Writes quiz/Qn.html file.


martina-starc/peRson documentation built on April 14, 2021, 3:48 p.m.