find_questions function

Get question numbers for any questions matching a regular expression

Get question numbers for any questions matching a regular expression

find_questions(regex)

Arguments

  • regex: The regular expression to look for in the lesson. This gets passed along to stringr::str_detect, so the same rules apply. See str_detect.

Returns

A vector of integers representing question numbers.

Examples

## Not run: set_lesson() find_questions("plot") find_questions("which") ## End(Not run)