check_quiz_question_attributes: Check a question's attributes

View source: R/quiz_formatting.R

check_quiz_question_attributesR Documentation

Check a question's attributes

Description

This is ran automatically by [ottrpal::check_all_questions] for all questions. It checks that the attributes specified are accepted ones by Leanpub.

Usage

check_quiz_question_attributes(question_df, quiz_name = NULL, verbose = TRUE)

Arguments

question_df

a data.frame obtained from [ottrpal::parse_quiz_df] and dplyr::group_split(question).

quiz_name

inherited from parse

verbose

print diagnostic messages

Value

Will return a warning for any quiz question attributes used that are not supported.


ottrpal documentation built on April 3, 2025, 7:46 p.m.