gap_text {rqti} | R Documentation |
Create YAML string for TextGap object
Description
Create YAML string for TextGap object
Usage
gap_text(
solution,
tolerance = NULL,
case_sensitive = FALSE,
points = 1,
response_identifier = NULL,
expected_length = size_gap(solution),
placeholder = NULL
)
Arguments
solution |
A character vector containing values considered as correct answers. |
tolerance |
An integer value, optional; defines the number of characters to tolerate spelling mistakes in evaluating candidate answers. |
case_sensitive |
A boolean, optional; determines whether the evaluation
of the correct answer is case sensitive. Default is |
points |
A numeric value, optional; the number of points for this gap. Default is 1. |
response_identifier |
A character string (optional) representing an identifier for the answer. |
expected_length |
An integer value, optional; sets the size of the text input field in the content delivery engine. |
placeholder |
A character string, optional; places helpful text in the text input field in the content delivery engine. |
Value
A character string mapped as yaml.
See Also
gap_numeric()
, dropdown()
, mdlist()
Examples
gap_text(c("Solution", "Solutions"), tolerance = 2)