torf: Create a true-or-false question

Description Usage Arguments Details Examples

View source: R/labsheet_fns.R

Description

Create a true-or-false question

Usage

1
torf(answer)

Arguments

answer

Logical value TRUE or FALSE, corresponding to the correct answer.

Details

Writes html code that creates an option box widget with TRUE or FALSE as alternatives. Call this function inline in an RMarkdown document. See the Web Exercises RMarkdown template for further examples.

Examples

1
2
# Is 2 + 2 = 4?
torf(TRUE)

bioboot/labsheet documentation built on Nov. 4, 2019, 7:19 a.m.