opts: Getters and setters for riddlr options

Description Usage Format Examples

Description

onSubmit

Expects a function expecting arguments code, duration and response. This function is called after a question solution is submitted and graded and can be used as a callback for additional functionality or logging.

Usage

1

Format

An object of class list of length 2.

Examples

1
opts$set(onSubmit = function(code, duration, response) message("submitted"))

dgkf/riddlr documentation built on Oct. 24, 2020, 3:52 a.m.