Learn R Programming

mycaas (version 0.0.1)

print_question: Print the question

Description

Function to print in the console the item and collect the answer.

Usage

print_question(
  TextQuestion,
  TextResponse = list(correct = "correct", incorrect = c("wrong1", "wrong2", "wrong3"))
)

Value

The answers of the question as numeric (1) if is correct and (0) if is false.

Arguments

TextQuestion

A character contain the text of the question.

TextResponse

A list containing for each question the correct and incorrect answers.