find_questions {swirlify}R Documentation

Get question numbers for any questions matching a regular expression

Description

Get question numbers for any questions matching a regular expression

Usage

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.

Value

A vector of integers representing question numbers.

Examples

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

## End(Not run)

[Package swirlify version 0.5.3 Index]